Class ArnResource
java.lang.Object
software.amazon.awssdk.arns.ArnResource
- All Implemented Interfaces:
ToCopyableBuilder<ArnResource.Builder,ArnResource>
public final class ArnResource
extends Object
implements ToCopyableBuilder<ArnResource.Builder,ArnResource>
An additional model within
Arn that provides the Resource Type, Resource, and
Resource Qualifier of an AWS Arn when those values are present and correctly formatted
within an Arn.
If resourceType is not present, resource will return the entire resource
as a string the same as Arn.resource().
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic final class -
Method Summary
Modifier and TypeMethodDescriptionstatic ArnResource.Builderbuilder()booleanstatic ArnResourcefromString(String resource) Parses a string containing either a resource, resource type and resource or resource type, resource and qualifier into anArnResource.inthashCode()resource()Take this object and create a builder that contains all of the current property values of this object.toString()Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
resourceType
-
resource
- Returns:
- the entire resource as a string
-
qualifier
-
builder
- Returns:
- a builder for
ArnResource.
-
fromString
Parses a string containing either a resource, resource type and resource or resource type, resource and qualifier into anArnResource.Supports fields separated by either ":" or "/".
For legacy AWS Arns not following the resourceType:resource:qualifier pattern, the qualifier field will contain everything after the first two sections separated by either ":" or "/".
- Parameters:
resource- - The resource string to parse.- Returns:
ArnResource
-
toString
-
equals
-
hashCode
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<ArnResource.Builder,ArnResource> - Returns:
- a builder for type T
-