Class ImmutableO365PurgeUserResponse.Builder
java.lang.Object
com.iland.core.web.rest.response.vbo.ImmutableO365PurgeUserResponse.Builder
- Enclosing class:
- ImmutableO365PurgeUserResponse
@Generated(from="O365PurgeUserResponse",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableO365PurgeUserResponse.Builder
extends Object
Builds instances of type
ImmutableO365PurgeUserResponse.
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 TypeMethodDescriptionactive(boolean active) Initializes the value for theactiveattribute.build()Builds a newImmutableO365PurgeUserResponse.completedDate(Instant completedDate) Initializes the optional valuecompletedDateto completedDate.completedDate(Optional<? extends Instant> completedDate) Initializes the optional valuecompletedDateto completedDate.Initializes the optional valueerrorMsgto errorMsg.Initializes the optional valueerrorMsgto errorMsg.from(O365PurgeUserResponse instance) Fill a builder with attribute values from the providedO365PurgeUserResponseinstance.initiatedDate(Instant initiatedDate) Initializes the value for theinitiatedDateattribute.Initializes the value for themailboxattribute.organizationUuid(String organizationUuid) Initializes the value for theorganizationUuidattribute.Initializes the value for thepurgeDateattribute.purgeStatus(String purgeStatus) Initializes the value for thepurgeStatusattribute.requestedBy(String requestedBy) Initializes the optional valuerequestedByto requestedBy.requestedBy(Optional<String> requestedBy) Initializes the optional valuerequestedByto requestedBy.userNativeUuid(String userNativeUuid) Initializes the value for theuserNativeUuidattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder from(O365PurgeUserResponse instance) Fill a builder with attribute values from the providedO365PurgeUserResponseinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
userNativeUuid
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder userNativeUuid(String userNativeUuid) Initializes the value for theuserNativeUuidattribute.- Parameters:
userNativeUuid- The value for userNativeUuid- Returns:
thisbuilder for use in a chained invocation
-
mailbox
Initializes the value for themailboxattribute.- Parameters:
mailbox- The value for mailbox- Returns:
thisbuilder for use in a chained invocation
-
organizationUuid
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder organizationUuid(String organizationUuid) Initializes the value for theorganizationUuidattribute.- Parameters:
organizationUuid- The value for organizationUuid- Returns:
thisbuilder for use in a chained invocation
-
initiatedDate
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder initiatedDate(Instant initiatedDate) Initializes the value for theinitiatedDateattribute.- Parameters:
initiatedDate- The value for initiatedDate- Returns:
thisbuilder for use in a chained invocation
-
purgeDate
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder purgeDate(Instant purgeDate) Initializes the value for thepurgeDateattribute.- Parameters:
purgeDate- The value for purgeDate- Returns:
thisbuilder for use in a chained invocation
-
active
Initializes the value for theactiveattribute.- Parameters:
active- The value for active- Returns:
thisbuilder for use in a chained invocation
-
purgeStatus
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder purgeStatus(String purgeStatus) Initializes the value for thepurgeStatusattribute.- Parameters:
purgeStatus- The value for purgeStatus- Returns:
thisbuilder for use in a chained invocation
-
errorMsg
Initializes the optional valueerrorMsgto errorMsg.- Parameters:
errorMsg- The value for errorMsg- Returns:
thisbuilder for chained invocation
-
errorMsg
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder errorMsg(Optional<String> errorMsg) Initializes the optional valueerrorMsgto errorMsg.- Parameters:
errorMsg- The value for errorMsg- Returns:
thisbuilder for use in a chained invocation
-
requestedBy
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder requestedBy(String requestedBy) Initializes the optional valuerequestedByto requestedBy.- Parameters:
requestedBy- The value for requestedBy- Returns:
thisbuilder for chained invocation
-
requestedBy
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder requestedBy(Optional<String> requestedBy) Initializes the optional valuerequestedByto requestedBy.- Parameters:
requestedBy- The value for requestedBy- Returns:
thisbuilder for use in a chained invocation
-
completedDate
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder completedDate(Instant completedDate) Initializes the optional valuecompletedDateto completedDate.- Parameters:
completedDate- The value for completedDate- Returns:
thisbuilder for chained invocation
-
completedDate
@CanIgnoreReturnValue public final ImmutableO365PurgeUserResponse.Builder completedDate(Optional<? extends Instant> completedDate) Initializes the optional valuecompletedDateto completedDate.- Parameters:
completedDate- The value for completedDate- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableO365PurgeUserResponse.- Returns:
- An immutable instance of O365PurgeUserResponse
- Throws:
IllegalStateException- if any required attributes are missing
-