Class AwsArn
java.lang.Object
software.amazon.smithy.rulesengine.aws.language.functions.AwsArn
- All Implemented Interfaces:
ToSmithyBuilder<AwsArn>
An AWS ARN.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AwsArn.Builder
builder()
Builder to create anAwsArn
instance.boolean
Gets the ARN's accountId.Gets the ARN's partition.Gets the ARN's region.Gets the ARN's resource components.Gets the ARN's service.int
hashCode()
Parses and returns the ARN components if the provided value is a valid AWS ARN.Take this object and create a builder that contains all of the current property values of this object.toString()
-
Method Details
-
parse
Parses and returns the ARN components if the provided value is a valid AWS ARN.- Parameters:
arn
- the value to parse.- Returns:
- the optional ARN.
-
builder
Builder to create anAwsArn
instance.- Returns:
- returns a new Builder.
-
getPartition
Gets the ARN's partition.- Returns:
- returns the ARN's partition.
-
getService
Gets the ARN's service.- Returns:
- returns the ARN's service.
-
getRegion
Gets the ARN's region.- Returns:
- returns the ARN's region.
-
getAccountId
Gets the ARN's accountId.- Returns:
- returns the ARN's accountId.
-
getResource
Gets the ARN's resource components.- Returns:
- returns the ARN's resource components.
-
hashCode
public int hashCode() -
equals
-
toString
-
toBuilder
Description copied from interface:ToSmithyBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToSmithyBuilder<AwsArn>
- Returns:
- a builder for type T
-