public class Service
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private Endpoint |
defaults
default endpoint configuration for a service across all regions in the
partition
|
private java.util.Map<java.lang.String,Endpoint> |
endpoints
endpoint configuration for every region in a partition.
|
private boolean |
isRegionalized
Returns true if the service is regionalized.
|
private java.lang.String |
partitionEndpoint
the region name if the service is enabled partition wide.
|
Constructor and Description |
---|
Service(java.util.Map<java.lang.String,Endpoint> endpoints) |
Modifier and Type | Method and Description |
---|---|
Endpoint |
getDefaults()
returns the default endpoints configuration for all regions in a
partition.
|
java.util.Map<java.lang.String,Endpoint> |
getEndpoints()
Returns the endpoints configuration for all regions in a partition
that service supports.
|
java.lang.String |
getPartitionEndpoint()
returns the region name if the service is enabled partition wide.
|
boolean |
isPartitionWideEndpointAvailable()
A convienient method that returns true if a service has a partition
wide endpoint available.
|
boolean |
isRegionalized()
returns true if the service is regionalized.
|
void |
setDefaults(Endpoint defaults)
Sets the default endpoints configuration for all regions in a
partition.
|
void |
setPartitionEndpoint(java.lang.String partitionEndpoint)
sets the region name if the service is enabled partition wide.
|
void |
setRegionalized(boolean regionalized)
sets the regionalized property for a service..
|
private final java.util.Map<java.lang.String,Endpoint> endpoints
private Endpoint defaults
private java.lang.String partitionEndpoint
private boolean isRegionalized
public Service(java.util.Map<java.lang.String,Endpoint> endpoints)
public java.util.Map<java.lang.String,Endpoint> getEndpoints()
public Endpoint getDefaults()
public void setDefaults(Endpoint defaults)
public java.lang.String getPartitionEndpoint()
public void setPartitionEndpoint(java.lang.String partitionEndpoint)
public boolean isRegionalized()
public void setRegionalized(boolean regionalized)
public boolean isPartitionWideEndpointAvailable()