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 Summary
Modifier and TypeMethodDescriptionbuild()Builds a newAuthTestResponse.final AuthTestResponse.Builderfrom(AuthTestResponseIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.auth.AuthTestResponseIFinstance.final AuthTestResponse.Builderfrom(SlackResponse instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.final AuthTestResponse.BuildersetOk(boolean ok) Initializes the value for theokattribute.final AuthTestResponse.BuildersetResponseMetadata(ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.final AuthTestResponse.BuildersetResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.final AuthTestResponse.BuilderInitializes the value for theteamattribute.final AuthTestResponse.BuilderInitializes the value for theteamIdattribute.final AuthTestResponse.BuilderInitializes the value for theurlattribute.final AuthTestResponse.BuilderInitializes the optional valueuserto user.final AuthTestResponse.BuilderInitializes the optional valueuserto user.final AuthTestResponse.BuilderInitializes the optional valueuserIdto userId.final AuthTestResponse.BuilderInitializes the optional valueuserIdto userId.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.auth.AuthTestResponseIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setOk
Initializes the value for theokattribute.- Parameters:
ok- The value for ok- Returns:
thisbuilder for use in a chained invocation
-
setResponseMetadata
public final AuthTestResponse.Builder setResponseMetadata(@Nullable ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.- Parameters:
responseMetadata- The value for responseMetadata,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setResponseMetadata
public final AuthTestResponse.Builder setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.- Parameters:
responseMetadata- The value for responseMetadata- Returns:
thisbuilder for use in a chained invocation
-
setUrl
Initializes the value for theurlattribute.- Parameters:
url- The value for url- Returns:
thisbuilder for use in a chained invocation
-
setTeam
Initializes the value for theteamattribute.- Parameters:
team- The value for team- Returns:
thisbuilder for use in a chained invocation
-
setTeamId
Initializes the value for theteamIdattribute.- Parameters:
teamId- The value for teamId- Returns:
thisbuilder for use in a chained invocation
-
setUser
Initializes the optional valueuserto user.- Parameters:
user- The value for user,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUser
Initializes the optional valueuserto user.- Parameters:
user- The value for user- Returns:
thisbuilder for use in a chained invocation
-
setUserId
Initializes the optional valueuserIdto userId.- Parameters:
userId- The value for userId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUserId
Initializes the optional valueuserIdto userId.- Parameters:
userId- The value for userId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newAuthTestResponse.- Returns:
- An immutable instance of AuthTestResponse
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-