Class ImmutableTokenResponse.Builder

  • Enclosing class:
    ImmutableTokenResponse

    @NotThreadSafe
    public static final class ImmutableTokenResponse.Builder
    extends java.lang.Object
    Builds instances of type ImmutableTokenResponse. 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 ImmutableTokenResponse.Builder from​(TokenResponse instance)
        Fill a builder with attribute values from the provided com.orbitz.consul.model.acl.TokenResponse instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

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

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

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

        @CanIgnoreReturnValue
        public final ImmutableTokenResponse.Builder policies​(java.lang.Iterable<? extends Token.PolicyLink> elements)
        Sets or replaces all elements for policies list.
        Parameters:
        elements - An iterable of policies elements
        Returns:
        this builder for use in a chained invocation
      • addAllPolicies

        @CanIgnoreReturnValue
        public final ImmutableTokenResponse.Builder addAllPolicies​(java.lang.Iterable<? extends Token.PolicyLink> elements)
        Adds elements to policies list.
        Parameters:
        elements - An iterable of policies elements
        Returns:
        this builder for use in a chained invocation
      • createIndex

        @CanIgnoreReturnValue
        public final ImmutableTokenResponse.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 ImmutableTokenResponse.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
      • local

        @CanIgnoreReturnValue
        public final ImmutableTokenResponse.Builder local​(boolean local)
        Initializes the value for the local attribute.
        Parameters:
        local - The value for local
        Returns:
        this builder for use in a chained invocation
      • createTime

        @CanIgnoreReturnValue
        public final ImmutableTokenResponse.Builder createTime​(java.util.Date createTime)
        Initializes the value for the createTime attribute.
        Parameters:
        createTime - The value for createTime
        Returns:
        this builder for use in a chained invocation
      • hash

        @CanIgnoreReturnValue
        public final ImmutableTokenResponse.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
      • secretId

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