Class AuthTestResponse.Builder

java.lang.Object
com.hubspot.slack.client.models.response.auth.AuthTestResponse.Builder
Enclosing class:
AuthTestResponse

@Generated(from="AuthTestResponseIF", generator="Immutables") @NotThreadSafe public static final class AuthTestResponse.Builder extends Object
Builds instances of type AuthTestResponse. 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 Details

    • from

      public final AuthTestResponse.Builder from(SlackResponse instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.response.SlackResponse instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      public final AuthTestResponse.Builder from(AuthTestResponseIF instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.models.response.auth.AuthTestResponseIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setOk

      public final AuthTestResponse.Builder setOk(boolean ok)
      Initializes the value for the ok attribute.
      Parameters:
      ok - The value for ok
      Returns:
      this builder for use in a chained invocation
    • setResponseMetadata

      public final AuthTestResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata)
      Initializes the optional value responseMetadata to responseMetadata.
      Parameters:
      responseMetadata - The value for responseMetadata, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setResponseMetadata

      public final AuthTestResponse.Builder setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata)
      Initializes the optional value responseMetadata to responseMetadata.
      Parameters:
      responseMetadata - The value for responseMetadata
      Returns:
      this builder for use in a chained invocation
    • setUrl

      public final AuthTestResponse.Builder setUrl(String url)
      Initializes the value for the url attribute.
      Parameters:
      url - The value for url
      Returns:
      this builder for use in a chained invocation
    • setTeam

      public final AuthTestResponse.Builder setTeam(String team)
      Initializes the value for the team attribute.
      Parameters:
      team - The value for team
      Returns:
      this builder for use in a chained invocation
    • setTeamId

      public final AuthTestResponse.Builder setTeamId(String teamId)
      Initializes the value for the teamId attribute.
      Parameters:
      teamId - The value for teamId
      Returns:
      this builder for use in a chained invocation
    • setUser

      public final AuthTestResponse.Builder setUser(@Nullable String user)
      Initializes the optional value user to user.
      Parameters:
      user - The value for user, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setUser

      public final AuthTestResponse.Builder setUser(Optional<String> user)
      Initializes the optional value user to user.
      Parameters:
      user - The value for user
      Returns:
      this builder for use in a chained invocation
    • setUserId

      public final AuthTestResponse.Builder setUserId(@Nullable String userId)
      Initializes the optional value userId to userId.
      Parameters:
      userId - The value for userId, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setUserId

      public final AuthTestResponse.Builder setUserId(Optional<String> userId)
      Initializes the optional value userId to userId.
      Parameters:
      userId - The value for userId
      Returns:
      this builder for use in a chained invocation
    • build

      public AuthTestResponse build()
      Builds a new AuthTestResponse.
      Returns:
      An immutable instance of AuthTestResponse
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing