public static final class ImmutableARI.Builder extends Object
ImmutableARI.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableARI |
build()
Builds a new
ImmutableARI. |
ImmutableARI.Builder |
cloudId(Optional<String> cloudId)
Initializes the optional value
cloudId to cloudId. |
ImmutableARI.Builder |
cloudId(String cloudId)
Initializes the optional value
cloudId to cloudId. |
ImmutableARI.Builder |
from(ARI instance)
Fill a builder with attribute values from the provided
ARI instance. |
ImmutableARI.Builder |
resourceId(Optional<String> resourceId)
Initializes the optional value
resourceId to resourceId. |
ImmutableARI.Builder |
resourceId(String resourceId)
Initializes the optional value
resourceId to resourceId. |
ImmutableARI.Builder |
resourceOwner(String resourceOwner)
Initializes the value for the
resourceOwner attribute. |
ImmutableARI.Builder |
resourceType(String resourceType)
Initializes the value for the
resourceType attribute. |
public final ImmutableARI.Builder from(ARI instance)
ARI instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableARI.Builder resourceOwner(String resourceOwner)
resourceOwner attribute.resourceOwner - The value for resourceOwnerthis builder for use in a chained invocationpublic final ImmutableARI.Builder cloudId(String cloudId)
cloudId to cloudId.cloudId - The value for cloudIdthis builder for chained invocationpublic final ImmutableARI.Builder cloudId(Optional<String> cloudId)
cloudId to cloudId.cloudId - The value for cloudIdthis builder for use in a chained invocationpublic final ImmutableARI.Builder resourceType(String resourceType)
resourceType attribute.resourceType - The value for resourceTypethis builder for use in a chained invocationpublic final ImmutableARI.Builder resourceId(String resourceId)
resourceId to resourceId.resourceId - The value for resourceIdthis builder for chained invocationpublic final ImmutableARI.Builder resourceId(Optional<String> resourceId)
resourceId to resourceId.resourceId - The value for resourceIdthis builder for use in a chained invocationpublic ImmutableARI build()
ImmutableARI.IllegalStateException - if any required attributes are missingCopyright © 2017 Atlassian. All rights reserved.