@Stability(value=Stable) public static final class ArnComponents.Builder extends Object
ArnComponents| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
ArnComponents |
build()
Builds the configured instance.
|
ArnComponents.Builder |
withAccount(String value)
Sets the value of Account
|
ArnComponents.Builder |
withPartition(String value)
Sets the value of Partition
|
ArnComponents.Builder |
withRegion(String value)
Sets the value of Region
|
ArnComponents.Builder |
withResource(String value)
Sets the value of Resource
|
ArnComponents.Builder |
withResourceName(String value)
Sets the value of ResourceName
|
ArnComponents.Builder |
withSep(String value)
Sets the value of Sep
|
ArnComponents.Builder |
withService(String value)
Sets the value of Service
|
@Stability(value=Stable) public ArnComponents.Builder withResource(String value)
value - Resource type (e.g. "table", "autoScalingGroup", "certificate"). For some resource types, e.g. S3 buckets, this field defines the bucket name.this@Stability(value=Stable) public ArnComponents.Builder withService(String value)
value - The service namespace that identifies the AWS product (for example, 's3', 'iam', 'codepipline').this@Stability(value=Stable) public ArnComponents.Builder withAccount(@Nullable String value)
value - 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@Stability(value=Stable) public ArnComponents.Builder withPartition(@Nullable String value)
value - The partition that the resource is in.this@Stability(value=Stable) public ArnComponents.Builder withRegion(@Nullable String value)
value - The region the resource resides in.this@Stability(value=Stable) public ArnComponents.Builder withResourceName(@Nullable String value)
value - Resource name or path within the resource (i.e. S3 bucket object key) or a wildcard such as ``"*"``. This is service-dependent.this@Stability(value=Stable) public ArnComponents.Builder withSep(@Nullable String value)
value - Separator between resource type and the resource.this@Stability(value=Stable) public ArnComponents build()
ArnComponentsNullPointerException - if any required attribute was not providedCopyright © 2019. All rights reserved.