@Generated(value={"Immutables.generator","ARI"}) public final class ImmutableARI extends ARI
ARI.
Use the builder to create immutable instances:
ImmutableARI.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableARI.Builder
Builds instances of type
ImmutableARI. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableARI.Builder |
builder()
Creates a builder for
ImmutableARI. |
static ImmutableARI |
copyOf(ARI instance)
Creates an immutable copy of a
ARI value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableARI that have equal attribute values. |
Optional<String> |
getCloudId() |
Optional<String> |
getResourceId() |
String |
getResourceOwner() |
String |
getResourceType() |
int |
hashCode()
Computes a hash code from attributes:
resourceOwner, cloudId, resourceType, resourceId. |
String |
toString()
Prints the immutable value
ARI with attribute values. |
String |
value() |
ImmutableARI |
withCloudId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
cloudId attribute. |
ImmutableARI |
withCloudId(String value)
Copy the current immutable object by setting a present value for the optional
cloudId attribute. |
ImmutableARI |
withResourceId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
resourceId attribute. |
ImmutableARI |
withResourceId(String value)
Copy the current immutable object by setting a present value for the optional
resourceId attribute. |
ImmutableARI |
withResourceOwner(String value)
Copy the current immutable object by setting a value for the
resourceOwner attribute. |
ImmutableARI |
withResourceType(String value)
Copy the current immutable object by setting a value for the
resourceType attribute. |
public String getResourceOwner()
getResourceOwner in class ARIresourceOwner attributepublic Optional<String> getCloudId()
getCloudId in class ARIcloudId attributepublic String getResourceType()
getResourceType in class ARIresourceType attributepublic Optional<String> getResourceId()
getResourceId in class ARIresourceId attributepublic final ImmutableARI withResourceOwner(String value)
resourceOwner attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for resourceOwnerthis objectpublic final ImmutableARI withCloudId(String value)
cloudId attribute.value - The value for cloudIdthis objectpublic final ImmutableARI withCloudId(Optional<String> optional)
cloudId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for cloudIdthis objectpublic final ImmutableARI withResourceType(String value)
resourceType attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for resourceTypethis objectpublic final ImmutableARI withResourceId(String value)
resourceId attribute.value - The value for resourceIdthis objectpublic final ImmutableARI withResourceId(Optional<String> optional)
resourceId attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for resourceIdthis objectpublic boolean equals(Object another)
ImmutableARI that have equal attribute values.public int hashCode()
resourceOwner, cloudId, resourceType, resourceId.public String toString()
ARI with attribute values.public String value()
Returns a lazily initialized value of the value attribute.
Initialized once and only once and stored for subsequent access with proper synchronization.
public static ImmutableARI copyOf(ARI instance)
ARI value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableARI.Builder builder()
ImmutableARI.Copyright © 2017 Atlassian. All rights reserved.