Class ImmutableRawUserRole
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.RawUserRole
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableRawUserRole
-
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableRawUserRole extends RawUserRole
Immutable implementation ofRawUserRole.Use the builder to create immutable instances:
ImmutableRawUserRole.builder(). Use the static factory method to create immutable instances:ImmutableRawUserRole.of().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableRawUserRole.BuilderBuilds instances of typeImmutableRawUserRole.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableRawUserRole.Builderbuilder()Creates a builder forImmutableRawUserRole.static ImmutableRawUserRolecopyOf(RawUserRole instance)Creates an immutable copy of aRawUserRolevalue.booleanequals(Object another)This instance is equal to all instances ofImmutableRawUserRolethat have equal attribute values.org.cloudfoundry.client.v3.roles.RoleResourcegetRoleResource()inthashCode()Computes a hash code from attributes:roleResource.static ImmutableRawUserRoleof(org.cloudfoundry.client.v3.roles.RoleResource roleResource)Construct a new immutableRawUserRoleinstance.StringtoString()Prints the immutable valueRawUserRolewith attribute values.ImmutableRawUserRolewithRoleResource(org.cloudfoundry.client.v3.roles.RoleResource value)Copy the current immutable object by setting a value for theroleResourceattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.RawUserRole
derive
-
-
-
-
Method Detail
-
getRoleResource
public org.cloudfoundry.client.v3.roles.RoleResource getRoleResource()
- Specified by:
getRoleResourcein classRawUserRole- Returns:
- The value of the
roleResourceattribute
-
withRoleResource
public final ImmutableRawUserRole withRoleResource(org.cloudfoundry.client.v3.roles.RoleResource value)
Copy the current immutable object by setting a value for theroleResourceattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for roleResource- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableRawUserRolethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:roleResource.
-
toString
public String toString()
Prints the immutable valueRawUserRolewith attribute values.
-
of
public static ImmutableRawUserRole of(org.cloudfoundry.client.v3.roles.RoleResource roleResource)
Construct a new immutableRawUserRoleinstance.- Parameters:
roleResource- The value for theroleResourceattribute- Returns:
- An immutable RawUserRole instance
-
copyOf
public static ImmutableRawUserRole copyOf(RawUserRole instance)
Creates an immutable copy of aRawUserRolevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable RawUserRole instance
-
builder
public static ImmutableRawUserRole.Builder builder()
Creates a builder forImmutableRawUserRole.ImmutableRawUserRole.builder() .roleResource(org.cloudfoundry.client.v3.roles.RoleResource) // requiredroleResource.build();- Returns:
- A new ImmutableRawUserRole builder
-
-