use of com.amazonaws.services.mediastore.model.Container in project aws-doc-sdk-examples by awsdocs.
the class CreateContainer method main.
public static void main(String[] args) {
final String USAGE = "\n" + "CreateContainer - create an AWS Elemental MediaStore container\n\n" + "Usage: CreateContainer <name>\n\n" + "Where:\n" + " name - the name of the container to create.\n";
if (args.length < 1) {
System.out.println(USAGE);
System.exit(1);
}
final String name = args[0];
System.out.format("\nCreating MediaStore container: %s\n", name);
final Container c = createContainer(name);
if (c == null) {
System.out.println("Error creating container!\n");
} else {
System.out.println("Done!\n");
}
}
use of com.amazonaws.services.mediastore.model.Container in project aws-doc-sdk-examples by awsdocs.
the class ListContainers method main.
public static void main(String[] args) {
final AWSMediaStore mediastore = AWSMediaStoreClientBuilder.defaultClient();
final ListContainersResult result = mediastore.listContainers(new ListContainersRequest());
final List<Container> containers = result.getContainers();
System.out.println("Your AWS Elemental MediaStore containers are:");
for (Container b : containers) {
System.out.println("* " + b.getName());
}
}
Aggregations