@Generated(value="org.immutables.processor.ProxyProcessor") public final class ImmutableCloudUser extends Object implements CloudUser
CloudUser.
Use the builder to create immutable instances:
ImmutableCloudUser.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableCloudUser.Builder
Builds instances of type
ImmutableCloudUser. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableCloudUser.Builder |
builder()
Creates a builder for
ImmutableCloudUser. |
static ImmutableCloudUser |
copyOf(CloudUser instance)
Creates an immutable copy of a
CloudUser value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableCloudUser that have equal attribute values. |
String |
getDefaultSpaceGuid() |
CloudMetadata |
getMetadata() |
String |
getName() |
org.cloudfoundry.client.v3.Metadata |
getV3Metadata() |
int |
hashCode()
Computes a hash code from attributes:
name, metadata, v3Metadata, defaultSpaceGuid, isActive, isAdmin. |
Boolean |
isActive() |
Boolean |
isAdmin() |
String |
toString()
Prints the immutable value
CloudUser with attribute values. |
ImmutableCloudUser |
withDefaultSpaceGuid(String value)
Copy the current immutable object by setting a value for the
defaultSpaceGuid attribute. |
ImmutableCloudUser |
withIsActive(Boolean value)
Copy the current immutable object by setting a value for the
isActive attribute. |
ImmutableCloudUser |
withIsAdmin(Boolean value)
Copy the current immutable object by setting a value for the
isAdmin attribute. |
ImmutableCloudUser |
withMetadata(CloudMetadata value)
Copy the current immutable object by setting a value for the
metadata attribute. |
ImmutableCloudUser |
withName(String value)
Copy the current immutable object by setting a value for the
name attribute. |
ImmutableCloudUser |
withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
Copy the current immutable object by setting a value for the
v3Metadata attribute. |
public String getName()
getName in interface CloudEntityname attributepublic CloudMetadata getMetadata()
getMetadata in interface CloudEntitymetadata attributepublic org.cloudfoundry.client.v3.Metadata getV3Metadata()
getV3Metadata in interface CloudEntityv3Metadata attributepublic String getDefaultSpaceGuid()
getDefaultSpaceGuid in interface CloudUserdefaultSpaceGuid attributepublic Boolean isActive()
public Boolean isAdmin()
public final ImmutableCloudUser withName(String value)
name attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for name (can be null)this objectpublic final ImmutableCloudUser withMetadata(CloudMetadata value)
metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for metadata (can be null)this objectpublic final ImmutableCloudUser withV3Metadata(org.cloudfoundry.client.v3.Metadata value)
v3Metadata attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for v3Metadata (can be null)this objectpublic final ImmutableCloudUser withDefaultSpaceGuid(String value)
defaultSpaceGuid attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for defaultSpaceGuid (can be null)this objectpublic final ImmutableCloudUser withIsActive(Boolean value)
isActive attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for isActive (can be null)this objectpublic final ImmutableCloudUser withIsAdmin(Boolean value)
isAdmin attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for isAdmin (can be null)this objectpublic boolean equals(Object another)
ImmutableCloudUser that have equal attribute values.public int hashCode()
name, metadata, v3Metadata, defaultSpaceGuid, isActive, isAdmin.public String toString()
CloudUser with attribute values.public static ImmutableCloudUser copyOf(CloudUser instance)
CloudUser 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 ImmutableCloudUser.Builder builder()
ImmutableCloudUser.
ImmutableCloudUser.builder()
.name(String | null) // nullable name
.metadata(org.cloudfoundry.client.lib.domain.CloudMetadata | null) // nullable metadata
.v3Metadata(org.cloudfoundry.client.v3.Metadata | null) // nullable v3Metadata
.defaultSpaceGuid(String | null) // nullable defaultSpaceGuid
.isActive(Boolean | null) // nullable isActive
.isAdmin(Boolean | null) // nullable isAdmin
.build();
Copyright © 2020 SAP SE. All rights reserved.