use of com.amazonaws.services.mediastore.model.DescribeContainerRequest in project aws-doc-sdk-examples by awsdocs.
the class PutObject method getContainerEndpoint.
public static String getContainerEndpoint(String name) {
final AWSMediaStore mediastore = AWSMediaStoreClientBuilder.defaultClient();
final DescribeContainerRequest request = new DescribeContainerRequest().withContainerName(name.trim());
try {
final DescribeContainerResult result = mediastore.describeContainer(request);
return result.getContainer().getEndpoint();
} catch (AWSMediaStoreException e) {
System.err.println(e.getErrorMessage());
}
return null;
}
use of com.amazonaws.services.mediastore.model.DescribeContainerRequest in project aws-doc-sdk-examples by awsdocs.
the class ListItems method getContainerEndpoint.
public static String getContainerEndpoint(String name) {
final AWSMediaStore mediastore = AWSMediaStoreClientBuilder.defaultClient();
final DescribeContainerRequest request = new DescribeContainerRequest().withContainerName(name.trim());
try {
final DescribeContainerResult result = mediastore.describeContainer(request);
return result.getContainer().getEndpoint();
} catch (AWSMediaStoreException e) {
System.err.println(e.getErrorMessage());
}
return null;
}
Aggregations