Class DndSnoozeResponse.Builder
java.lang.Object
com.hubspot.slack.client.models.response.dnd.DndSnoozeResponse.Builder
- Enclosing class:
DndSnoozeResponse
@Generated(from="DndSnoozeResponseIF",
generator="Immutables")
@NotThreadSafe
public static final class DndSnoozeResponse.Builder
extends Object
Builds instances of type
DndSnoozeResponse.
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 newDndSnoozeResponse.from(DndSnoozeResponseIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.dnd.DndSnoozeResponseIFinstance.from(SlackResponse instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.response.SlackResponseinstance.setOk(boolean ok) Initializes the value for theokattribute.setResponseMetadata(ResponseMetadata responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.setResponseMetadata(Optional<? extends ResponseMetadata> responseMetadata) Initializes the optional valueresponseMetadatato responseMetadata.setSnoozeEnabled(boolean snoozeEnabled) Initializes the value for thesnoozeEnabledattribute.setSnoozeEnd(Instant snoozeEnd) Initializes the optional valuesnoozeEndto snoozeEnd.setSnoozeEnd(Optional<? extends Instant> snoozeEnd) Initializes the optional valuesnoozeEndto snoozeEnd.setSnoozeRemaining(Integer snoozeRemaining) Initializes the optional valuesnoozeRemainingto snoozeRemaining.setSnoozeRemaining(Optional<Integer> snoozeRemaining) Initializes the optional valuesnoozeRemainingto snoozeRemaining.
-
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.dnd.DndSnoozeResponseIFinstance.- 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 DndSnoozeResponse.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 DndSnoozeResponse.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
-
setSnoozeEnabled
Initializes the value for thesnoozeEnabledattribute.- Parameters:
snoozeEnabled- The value for snoozeEnabled- Returns:
thisbuilder for use in a chained invocation
-
setSnoozeEnd
Initializes the optional valuesnoozeEndto snoozeEnd.- Parameters:
snoozeEnd- The value for snoozeEnd,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setSnoozeEnd
Initializes the optional valuesnoozeEndto snoozeEnd.- Parameters:
snoozeEnd- The value for snoozeEnd- Returns:
thisbuilder for use in a chained invocation
-
setSnoozeRemaining
Initializes the optional valuesnoozeRemainingto snoozeRemaining.- Parameters:
snoozeRemaining- The value for snoozeRemaining,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setSnoozeRemaining
Initializes the optional valuesnoozeRemainingto snoozeRemaining.- Parameters:
snoozeRemaining- The value for snoozeRemaining- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newDndSnoozeResponse.- Returns:
- An immutable instance of DndSnoozeResponse
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-