Class ImmutableAclResponse


  • @ParametersAreNonnullByDefault
    @Generated("org.immutables.processor.ProxyProcessor")
    @Immutable
    @CheckReturnValue
    public final class ImmutableAclResponse
    extends AclResponse
    Immutable implementation of AclResponse.

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

    • Method Detail

      • createIndex

        public java.math.BigInteger createIndex()
        Specified by:
        createIndex in class AclResponse
        Returns:
        The value of the createIndex attribute
      • modifyIndex

        public java.math.BigInteger modifyIndex()
        Specified by:
        modifyIndex in class AclResponse
        Returns:
        The value of the modifyIndex attribute
      • id

        public java.util.Optional<java.lang.String> id()
        Specified by:
        id in class AclResponse
        Returns:
        The value of the id attribute
      • name

        public java.util.Optional<java.lang.String> name()
        Specified by:
        name in class AclResponse
        Returns:
        The value of the name attribute
      • type

        public java.util.Optional<java.lang.String> type()
        Specified by:
        type in class AclResponse
        Returns:
        The value of the type attribute
      • rules

        public java.util.Optional<java.lang.String> rules()
        Specified by:
        rules in class AclResponse
        Returns:
        The value of the rules attribute
      • withCreateIndex

        public final ImmutableAclResponse withCreateIndex​(java.math.BigInteger value)
        Copy the current immutable object by setting a value for the createIndex attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for createIndex
        Returns:
        A modified copy of the this object
      • withModifyIndex

        public final ImmutableAclResponse withModifyIndex​(java.math.BigInteger value)
        Copy the current immutable object by setting a value for the modifyIndex attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for modifyIndex
        Returns:
        A modified copy of the this object
      • withId

        public final ImmutableAclResponse withId​(java.lang.String value)
        Copy the current immutable object by setting a present value for the optional id attribute.
        Parameters:
        value - The value for id
        Returns:
        A modified copy of this object
      • withId

        public final ImmutableAclResponse withId​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the id attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for id
        Returns:
        A modified copy of this object
      • withName

        public final ImmutableAclResponse withName​(java.lang.String value)
        Copy the current immutable object by setting a present value for the optional name attribute.
        Parameters:
        value - The value for name
        Returns:
        A modified copy of this object
      • withName

        public final ImmutableAclResponse withName​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the name attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for name
        Returns:
        A modified copy of this object
      • withType

        public final ImmutableAclResponse withType​(java.lang.String value)
        Copy the current immutable object by setting a present value for the optional type attribute.
        Parameters:
        value - The value for type
        Returns:
        A modified copy of this object
      • withType

        public final ImmutableAclResponse withType​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the type attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for type
        Returns:
        A modified copy of this object
      • withRules

        public final ImmutableAclResponse withRules​(java.lang.String value)
        Copy the current immutable object by setting a present value for the optional rules attribute.
        Parameters:
        value - The value for rules
        Returns:
        A modified copy of this object
      • withRules

        public final ImmutableAclResponse withRules​(java.util.Optional<java.lang.String> optional)
        Copy the current immutable object by setting an optional value for the rules attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for rules
        Returns:
        A modified copy of this object
      • equals

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

        public int hashCode()
        Computes a hash code from attributes: createIndex, modifyIndex, id, name, type, rules.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hashCode value
      • toString

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

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

        public static ImmutableAclResponse.Builder builder()
        Creates a builder for ImmutableAclResponse.
         ImmutableAclResponse.builder()
            .createIndex(java.math.BigInteger) // required createIndex
            .modifyIndex(java.math.BigInteger) // required modifyIndex
            .id(String) // optional id
            .name(String) // optional name
            .type(String) // optional type
            .rules(String) // optional rules
            .build();
         
        Returns:
        A new ImmutableAclResponse builder