public static final class ArnComponents.Builder
extends java.lang.Object
ArnComponents
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ArnComponents.Builder |
account(java.lang.String account)
Sets the value of
ArnComponents.getAccount() |
ArnComponents.Builder |
arnFormat(ArnFormat arnFormat)
Sets the value of
ArnComponents.getArnFormat() |
ArnComponents |
build()
Builds the configured instance.
|
ArnComponents.Builder |
partition(java.lang.String partition)
Sets the value of
ArnComponents.getPartition() |
ArnComponents.Builder |
region(java.lang.String region)
Sets the value of
ArnComponents.getRegion() |
ArnComponents.Builder |
resource(java.lang.String resource)
Sets the value of
ArnComponents.getResource() |
ArnComponents.Builder |
resourceName(java.lang.String resourceName)
Sets the value of
ArnComponents.getResourceName() |
ArnComponents.Builder |
sep(java.lang.String sep)
Deprecated.
use arnFormat instead
|
ArnComponents.Builder |
service(java.lang.String service)
Sets the value of
ArnComponents.getService() |
public ArnComponents.Builder resource(java.lang.String resource)
ArnComponents.getResource()
resource
- Resource type (e.g. "table", "autoScalingGroup", "certificate"). For some resource types, e.g. S3 buckets, this field defines the bucket name. This parameter is required.this
public ArnComponents.Builder service(java.lang.String service)
ArnComponents.getService()
service
- The service namespace that identifies the AWS product (for example, 's3', 'iam', 'codepipline'). This parameter is required.this
public ArnComponents.Builder account(java.lang.String account)
ArnComponents.getAccount()
account
- The ID of the AWS account that owns the resource, without the hyphens.
For example, 123456789012. Note that the ARNs for some resources don't
require an account number, so this component might be omitted.this
public ArnComponents.Builder arnFormat(ArnFormat arnFormat)
ArnComponents.getArnFormat()
arnFormat
- The specific ARN format to use for this ARN value.this
public ArnComponents.Builder partition(java.lang.String partition)
ArnComponents.getPartition()
partition
- The partition that the resource is in.
For standard AWS regions, the
partition is aws. If you have resources in other partitions, the
partition is aws-partitionname. For example, the partition for resources
in the China (Beijing) region is aws-cn.this
public ArnComponents.Builder region(java.lang.String region)
ArnComponents.getRegion()
region
- The region the resource resides in.
Note that the ARNs for some resources
do not require a region, so this component might be omitted.this
public ArnComponents.Builder resourceName(java.lang.String resourceName)
ArnComponents.getResourceName()
resourceName
- Resource name or path within the resource (i.e. S3 bucket object key) or a wildcard such as ``"*"``. This is service-dependent.this
@Deprecated public ArnComponents.Builder sep(java.lang.String sep)
ArnComponents.getSep()
sep
- Separator between resource type and the resource.
Can be either '/', ':' or an empty string. Will only be used if resourceName is defined.this
public ArnComponents build()
ArnComponents
java.lang.NullPointerException
- if any required attribute was not provided