Class ImmutableUaaGroup

  • All Implemented Interfaces:
    UaaEntity, UaaGroup

    @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    public final class ImmutableUaaGroup
    extends Object
    implements UaaGroup
    Immutable implementation of UaaGroup.

    Use the builder to create immutable instances: ImmutableUaaGroup.builder().

    • Method Detail

      • getId

        public String getId()
        Specified by:
        getId in interface UaaEntity
        Returns:
        The value of the id attribute
      • getDisplayName

        public String getDisplayName()
        Specified by:
        getDisplayName in interface UaaGroup
        Returns:
        The value of the displayName attribute
      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface UaaGroup
        Returns:
        The value of the description attribute
      • getZoneId

        public String getZoneId()
        Specified by:
        getZoneId in interface UaaGroup
        Returns:
        The value of the zoneId attribute
      • getMeta

        public UaaMeta getMeta()
        Specified by:
        getMeta in interface UaaGroup
        Returns:
        The value of the meta attribute
      • withId

        public final ImmutableUaaGroup withId​(String value)
        Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for id
        Returns:
        A modified copy of the this object
      • withSchemas

        public final ImmutableUaaGroup withSchemas​(String... elements)
        Copy the current immutable object with elements that replace the content of schemas.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withSchemas

        public final ImmutableUaaGroup withSchemas​(Iterable<String> elements)
        Copy the current immutable object with elements that replace the content of schemas. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of schemas elements to set
        Returns:
        A modified copy of this object
      • withDisplayName

        public final ImmutableUaaGroup withDisplayName​(String value)
        Copy the current immutable object by setting a value for the displayName attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for displayName
        Returns:
        A modified copy of the this object
      • withDescription

        public final ImmutableUaaGroup withDescription​(String value)
        Copy the current immutable object by setting a value for the description attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for description (can be null)
        Returns:
        A modified copy of the this object
      • withMembers

        public final ImmutableUaaGroup withMembers​(UaaGroup.Member... elements)
        Copy the current immutable object with elements that replace the content of members.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withMembers

        public final ImmutableUaaGroup withMembers​(Iterable<? extends UaaGroup.Member> elements)
        Copy the current immutable object with elements that replace the content of members. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of members elements to set
        Returns:
        A modified copy of this object
      • withZoneId

        public final ImmutableUaaGroup withZoneId​(String value)
        Copy the current immutable object by setting a value for the zoneId attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for zoneId (can be null)
        Returns:
        A modified copy of the this object
      • withMeta

        public final ImmutableUaaGroup withMeta​(UaaMeta value)
        Copy the current immutable object by setting a value for the meta attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for meta (can be null)
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableUaaGroup 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: id, schemas, displayName, description, members, zoneId, meta.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

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

        public static ImmutableUaaGroup copyOf​(UaaGroup instance)
        Creates an immutable copy of a UaaGroup 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 UaaGroup instance
      • builder

        public static ImmutableUaaGroup.Builder builder()
        Creates a builder for ImmutableUaaGroup.
         ImmutableUaaGroup.builder()
            .id(String) // required id
            .addSchemas|addAllSchemas(String) // schemas elements
            .displayName(String) // required displayName
            .description(String | null) // nullable description
            .addMembers|addAllMembers(io.dialob.security.uaa.spi.model.UaaGroup.Member) // members elements
            .zoneId(String | null) // nullable zoneId
            .meta(io.dialob.security.uaa.spi.model.UaaMeta | null) // nullable meta
            .build();
         
        Returns:
        A new ImmutableUaaGroup builder