Class ImmutableRawUserRole

  • All Implemented Interfaces:
    Derivable<UserRole>

    @Generated("org.immutables.processor.ProxyProcessor")
    public final class ImmutableRawUserRole
    extends RawUserRole
    Immutable implementation of RawUserRole.

    Use the builder to create immutable instances: ImmutableRawUserRole.builder(). Use the static factory method to create immutable instances: ImmutableRawUserRole.of().

    • Method Detail

      • getRoleResource

        public org.cloudfoundry.client.v3.roles.RoleResource getRoleResource()
        Specified by:
        getRoleResource in class RawUserRole
        Returns:
        The value of the roleResource attribute
      • withRoleResource

        public final ImmutableRawUserRole withRoleResource​(org.cloudfoundry.client.v3.roles.RoleResource value)
        Copy the current immutable object by setting a value for the roleResource attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for roleResource
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableRawUserRole that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: roleResource.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value RawUserRole with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • of

        public static ImmutableRawUserRole of​(org.cloudfoundry.client.v3.roles.RoleResource roleResource)
        Construct a new immutable RawUserRole instance.
        Parameters:
        roleResource - The value for the roleResource attribute
        Returns:
        An immutable RawUserRole instance
      • copyOf

        public static ImmutableRawUserRole copyOf​(RawUserRole instance)
        Creates an immutable copy of a RawUserRole value. 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