public class ArnResource extends Object
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.getResource()
.
Modifier and Type | Class and Description |
---|---|
static class |
ArnResource.Builder |
Modifier and Type | Method and Description |
---|---|
static ArnResource.Builder |
builder() |
boolean |
equals(Object o) |
static ArnResource |
fromString(String resource)
Parses a string containing either a resource, resource type and resource or
resource type, resource and qualifier into an
ArnResource . |
String |
getQualifier() |
String |
getResource() |
String |
getResourceType() |
int |
hashCode() |
String |
toString() |
public String getResourceType()
public String getResource()
public String getQualifier()
public static ArnResource.Builder builder()
public static ArnResource fromString(String resource)
ArnResource
.
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 "/".
resource
- - The resource string to parse.ArnResource
Copyright © 2019. All rights reserved.