com.ibm.cloud.objectstorage.regions.RegionImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ibm-cos-java-sdk-bundle Show documentation
Show all versions of ibm-cos-java-sdk-bundle Show documentation
A single bundled dependency that includes all service and dependent JARs with third-party libraries relocated to different namespaces.
/*
* Copyright 2016-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.ibm.cloud.objectstorage.regions;
import com.ibm.cloud.objectstorage.annotation.SdkInternalApi;
import java.util.Collection;
/**
* Interface for an region implementation.
*/
@SdkInternalApi
public interface RegionImpl {
/**
* The unique system ID for this region; ex: "us-east-1".
*
* @return The unique system ID for this region.
*/
String getName();
/**
* Returns the domain for this region; ex: "amazonaws.com".
*
* @return The domain for this region.
*/
String getDomain();
/**
* Returns the partition this region is in. I.E. 'aws' or 'aws-cn'
*
* @return The partition this region is in.
*/
String getPartition();
/**
* Returns whether the given service is supported in this region.
*
* @param serviceName
* The service endpoint prefix which can be retrieved from the
* constant ENDPOINT_PREFIX of the specific service client interface,
* e.g. AmazonEC2.ENDPOINT_PREFIX.
*/
boolean isServiceSupported(String serviceName);
/**
* Returns the endpoint for the service given.
*
* @param serviceName
* The service endpoint prefix which can be retrieved from the
* constant ENDPOINT_PREFIX of the specific service client interface,
* e.g. AmazonEC2.ENDPOINT_PREFIX.
*/
String getServiceEndpoint(String serviceName);
/**
* Returns whether the given service support the http protocol in this region.
*
* @param serviceName
* The service endpoint prefix which can be retrieved from the
* constant ENDPOINT_PREFIX of the specific service client interface,
* e.g. AmazonEC2.ENDPOINT_PREFIX.
*/
boolean hasHttpEndpoint(String serviceName);
/**
* Returns whether the given service support the https protocol in this region.
*
* @param serviceName
* The service endpoint prefix which can be retrieved from the
* constant ENDPOINT_PREFIX of the specific service client interface,
* e.g. AmazonEC2.ENDPOINT_PREFIX.
*/
boolean hasHttpsEndpoint(String serviceName);
/**
* Returns an immutable collection of all the endpoints available in the
* region
* metadata.
*/
Collection getAvailableEndpoints();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy