@Override
    public Builder toBuilder() {
        return builder()
                .partition(partition)
                .service(service)
                .region(region)
                .accountId(accountId)
                .resource(resource);
    }
Gets the ARN's resource components.

@return returns the ARN's resource components.
smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/language/functions/AwsArn.java