public abstract class AwsRegion
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
AwsRegion.CustomEndpointAwsRegion |
static class |
AwsRegion.DefaultAwsRegion |
static class |
AwsRegion.SpecificIdAwsRegion |
Modifier and Type | Method and Description |
---|---|
AwsRegion.CustomEndpointAwsRegion |
asCustomEndpoint()
Returns this region as a
AwsRegion.CustomEndpointAwsRegion . |
AwsRegion.SpecificIdAwsRegion |
asId()
Returns this region as a
AwsRegion.SpecificIdAwsRegion . |
static AwsRegion |
fromDefaultProviderChain()
Consults AWS's default provider chain to determine the AWS region.
|
boolean |
isCustomEndpoint()
Checks whether the region is specified with a custom non-standard AWS service endpoint.
|
boolean |
isDefault()
Checks whether the region is configured to be obtained from AWS's default provider chain.
|
boolean |
isId()
Checks whether the region is specified with the region's unique id.
|
static AwsRegion |
ofCustomEndpoint(java.lang.String serviceEndpoint,
java.lang.String regionId)
Connects to an AWS region through a non-standard AWS service endpoint.
|
static AwsRegion |
ofId(java.lang.String id)
Specifies an AWS region using the region's unique id.
|
public static AwsRegion fromDefaultProviderChain()
public static AwsRegion ofId(java.lang.String id)
public static AwsRegion ofCustomEndpoint(java.lang.String serviceEndpoint, java.lang.String regionId)
public boolean isDefault()
public boolean isId()
public boolean isCustomEndpoint()
public AwsRegion.SpecificIdAwsRegion asId()
AwsRegion.SpecificIdAwsRegion
.public AwsRegion.CustomEndpointAwsRegion asCustomEndpoint()
AwsRegion.CustomEndpointAwsRegion
.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.