Class ImmutablePolicyResponse.Builder

  • Enclosing class:
    ImmutablePolicyResponse

    @NotThreadSafe
    public static final class ImmutablePolicyResponse.Builder
    extends java.lang.Object
    Builds instances of type ImmutablePolicyResponse. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutablePolicyResponse.Builder from​(BasePolicyResponse instance)
        Fill a builder with attribute values from the provided com.orbitz.consul.model.acl.BasePolicyResponse instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        @CanIgnoreReturnValue
        public final ImmutablePolicyResponse.Builder from​(PolicyResponse instance)
        Fill a builder with attribute values from the provided com.orbitz.consul.model.acl.PolicyResponse instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • id

        @CanIgnoreReturnValue
        public final ImmutablePolicyResponse.Builder id​(java.lang.String id)
        Initializes the value for the id attribute.
        Parameters:
        id - The value for id
        Returns:
        this builder for use in a chained invocation
      • name

        @CanIgnoreReturnValue
        public final ImmutablePolicyResponse.Builder name​(java.lang.String name)
        Initializes the value for the name attribute.
        Parameters:
        name - The value for name
        Returns:
        this builder for use in a chained invocation
      • datacenters

        @CanIgnoreReturnValue
        public final ImmutablePolicyResponse.Builder datacenters​(java.lang.String datacenters)
        Initializes the optional value datacenters to datacenters.
        Parameters:
        datacenters - The value for datacenters
        Returns:
        this builder for chained invocation
      • datacenters

        @CanIgnoreReturnValue
        public final ImmutablePolicyResponse.Builder datacenters​(java.util.Optional<java.lang.String> datacenters)
        Initializes the optional value datacenters to datacenters.
        Parameters:
        datacenters - The value for datacenters
        Returns:
        this builder for use in a chained invocation
      • hash

        @CanIgnoreReturnValue
        public final ImmutablePolicyResponse.Builder hash​(java.lang.String hash)
        Initializes the value for the hash attribute.
        Parameters:
        hash - The value for hash
        Returns:
        this builder for use in a chained invocation
      • createIndex

        @CanIgnoreReturnValue
        public final ImmutablePolicyResponse.Builder createIndex​(java.math.BigInteger createIndex)
        Initializes the value for the createIndex attribute.
        Parameters:
        createIndex - The value for createIndex
        Returns:
        this builder for use in a chained invocation
      • modifyIndex

        @CanIgnoreReturnValue
        public final ImmutablePolicyResponse.Builder modifyIndex​(java.math.BigInteger modifyIndex)
        Initializes the value for the modifyIndex attribute.
        Parameters:
        modifyIndex - The value for modifyIndex
        Returns:
        this builder for use in a chained invocation