Class ImmutableAwsEventResponse.Builder
java.lang.Object
com.iland.core.web.rest.response.event.ImmutableAwsEventResponse.Builder
- Enclosing class:
- ImmutableAwsEventResponse
@Generated(from="AwsEventResponse",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableAwsEventResponse.Builder
extends Object
Builds instances of type
ImmutableAwsEventResponse.
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 TypeMethodDescriptionInitializes the optional valueaccessKeyto accessKey.Initializes the optional valueaccessKeyto accessKey.Initializes the optional valueaccountIdto accountId.Initializes the optional valueaccountIdto accountId.accountName(String accountName) Initializes the optional valueaccountNameto accountName.accountName(Optional<String> accountName) Initializes the optional valueaccountNameto accountName.additionalMonthlyStorageCost(double additionalMonthlyStorageCost) Initializes the optional valueadditionalMonthlyStorageCostto additionalMonthlyStorageCost.additionalMonthlyStorageCost(Optional<Double> additionalMonthlyStorageCost) Initializes the optional valueadditionalMonthlyStorageCostto additionalMonthlyStorageCost.additionalStorage(int additionalStorage) Initializes the optional valueadditionalStorageto additionalStorage.additionalStorage(Optional<Integer> additionalStorage) Initializes the optional valueadditionalStorageto additionalStorage.awsEventType(AwsEventTypeResponse awsEventType) Initializes the value for theawsEventTypeattribute.build()Builds a newImmutableAwsEventResponse.contractNumber(String contractNumber) Initializes the value for thecontractNumberattribute.contractUuid(String contractUuid) Initializes the value for thecontractUuidattribute.Initializes the optional valuecurrencyto currency.Initializes the optional valuecurrencyto currency.currentMonthlyStorageCost(double currentMonthlyStorageCost) Initializes the optional valuecurrentMonthlyStorageCostto currentMonthlyStorageCost.currentMonthlyStorageCost(Optional<Double> currentMonthlyStorageCost) Initializes the optional valuecurrentMonthlyStorageCostto currentMonthlyStorageCost.Initializes the value for thedetailsattribute.entityName(String entityName) Initializes the value for theentityNameattribute.entityType(EntityTypeResponse entityType) Initializes the value for theentityTypeattribute.entityUuid(String entityUuid) Initializes the value for theentityUuidattribute.existingStorageReservation(int existingStorageReservation) Initializes the optional valueexistingStorageReservationto existingStorageReservation.existingStorageReservation(Optional<Integer> existingStorageReservation) Initializes the optional valueexistingStorageReservationto existingStorageReservation.from(AwsEventResponse instance) Fill a builder with attribute values from the providedAwsEventResponseinstance.initiatedByFullName(String initiatedByFullName) Initializes the value for theinitiatedByFullNameattribute.initiatedByUsername(String initiatedByUsername) Initializes the value for theinitiatedByUsernameattribute.Initializes the value for theipAddressattribute.newAccessKey(String newAccessKey) Initializes the optional valuenewAccessKeyto newAccessKey.newAccessKey(Optional<String> newAccessKey) Initializes the optional valuenewAccessKeyto newAccessKey.newAccountName(String newAccountName) Initializes the optional valuenewAccountNameto newAccountName.newAccountName(Optional<String> newAccountName) Initializes the optional valuenewAccountNameto newAccountName.newBucketName(String newBucketName) Initializes the optional valuenewBucketNameto newBucketName.newBucketName(Optional<String> newBucketName) Initializes the optional valuenewBucketNameto newBucketName.newBucketObjectLockEnabled(boolean newBucketObjectLockEnabled) Initializes the optional valuenewBucketObjectLockEnabledto newBucketObjectLockEnabled.newBucketObjectLockEnabled(Optional<Boolean> newBucketObjectLockEnabled) Initializes the optional valuenewBucketObjectLockEnabledto newBucketObjectLockEnabled.newKeyDescription(String newKeyDescription) Initializes the optional valuenewKeyDescriptionto newKeyDescription.newKeyDescription(Optional<String> newKeyDescription) Initializes the optional valuenewKeyDescriptionto newKeyDescription.newMonthlyStorageCost(double newMonthlyStorageCost) Initializes the optional valuenewMonthlyStorageCostto newMonthlyStorageCost.newMonthlyStorageCost(Optional<Double> newMonthlyStorageCost) Initializes the optional valuenewMonthlyStorageCostto newMonthlyStorageCost.newStorageReservation(int newStorageReservation) Initializes the optional valuenewStorageReservationto newStorageReservation.newStorageReservation(Optional<Integer> newStorageReservation) Initializes the optional valuenewStorageReservationto newStorageReservation.originalAccountName(String originalAccountName) Initializes the optional valueoriginalAccountNameto originalAccountName.originalAccountName(Optional<String> originalAccountName) Initializes the optional valueoriginalAccountNameto originalAccountName.Initializes the value for theownerIdattribute.ownerType(EventOwnerType ownerType) Initializes the value for theownerTypeattribute.Initializes the optional valuetaskUuidto taskUuid.Initializes the optional valuetaskUuidto taskUuid.Initializes the value for thetimestampattribute.type(EventTypeResponse type) Initializes the value for thetypeattribute.Initializes the value for theuuidattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder from(AwsEventResponse instance) Fill a builder with attribute values from the providedAwsEventResponseinstance. 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
-
uuid
Initializes the value for theuuidattribute.- Parameters:
uuid- The value for uuid- Returns:
thisbuilder for use in a chained invocation
-
ownerType
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder ownerType(EventOwnerType ownerType) Initializes the value for theownerTypeattribute.- Parameters:
ownerType- The value for ownerType- Returns:
thisbuilder for use in a chained invocation
-
ownerId
Initializes the value for theownerIdattribute.- Parameters:
ownerId- The value for ownerId- Returns:
thisbuilder for use in a chained invocation
-
entityUuid
Initializes the value for theentityUuidattribute.- Parameters:
entityUuid- The value for entityUuid- Returns:
thisbuilder for use in a chained invocation
-
entityName
Initializes the value for theentityNameattribute.- Parameters:
entityName- The value for entityName- Returns:
thisbuilder for use in a chained invocation
-
entityType
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder entityType(EntityTypeResponse entityType) Initializes the value for theentityTypeattribute.- Parameters:
entityType- The value for entityType- Returns:
thisbuilder for use in a chained invocation
-
type
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
timestamp
Initializes the value for thetimestampattribute.- Parameters:
timestamp- The value for timestamp- Returns:
thisbuilder for use in a chained invocation
-
taskUuid
Initializes the optional valuetaskUuidto taskUuid.- Parameters:
taskUuid- The value for taskUuid- Returns:
thisbuilder for chained invocation
-
taskUuid
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder taskUuid(Optional<String> taskUuid) Initializes the optional valuetaskUuidto taskUuid.- Parameters:
taskUuid- The value for taskUuid- Returns:
thisbuilder for use in a chained invocation
-
initiatedByUsername
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder initiatedByUsername(String initiatedByUsername) Initializes the value for theinitiatedByUsernameattribute.- Parameters:
initiatedByUsername- The value for initiatedByUsername- Returns:
thisbuilder for use in a chained invocation
-
initiatedByFullName
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder initiatedByFullName(String initiatedByFullName) Initializes the value for theinitiatedByFullNameattribute.- Parameters:
initiatedByFullName- The value for initiatedByFullName- Returns:
thisbuilder for use in a chained invocation
-
details
Initializes the value for thedetailsattribute.- Parameters:
details- The value for details- Returns:
thisbuilder for use in a chained invocation
-
contractUuid
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder contractUuid(String contractUuid) Initializes the value for thecontractUuidattribute.- Parameters:
contractUuid- The value for contractUuid- Returns:
thisbuilder for use in a chained invocation
-
contractNumber
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder contractNumber(String contractNumber) Initializes the value for thecontractNumberattribute.- Parameters:
contractNumber- The value for contractNumber- Returns:
thisbuilder for use in a chained invocation
-
ipAddress
Initializes the value for theipAddressattribute.- Parameters:
ipAddress- The value for ipAddress- Returns:
thisbuilder for use in a chained invocation
-
awsEventType
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder awsEventType(AwsEventTypeResponse awsEventType) Initializes the value for theawsEventTypeattribute.- Parameters:
awsEventType- The value for awsEventType- Returns:
thisbuilder for use in a chained invocation
-
accountId
Initializes the optional valueaccountIdto accountId.- Parameters:
accountId- The value for accountId- Returns:
thisbuilder for chained invocation
-
accountId
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder accountId(Optional<String> accountId) Initializes the optional valueaccountIdto accountId.- Parameters:
accountId- The value for accountId- Returns:
thisbuilder for use in a chained invocation
-
accessKey
Initializes the optional valueaccessKeyto accessKey.- Parameters:
accessKey- The value for accessKey- Returns:
thisbuilder for chained invocation
-
accessKey
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder accessKey(Optional<String> accessKey) Initializes the optional valueaccessKeyto accessKey.- Parameters:
accessKey- The value for accessKey- Returns:
thisbuilder for use in a chained invocation
-
newAccessKey
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newAccessKey(String newAccessKey) Initializes the optional valuenewAccessKeyto newAccessKey.- Parameters:
newAccessKey- The value for newAccessKey- Returns:
thisbuilder for chained invocation
-
newAccessKey
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newAccessKey(Optional<String> newAccessKey) Initializes the optional valuenewAccessKeyto newAccessKey.- Parameters:
newAccessKey- The value for newAccessKey- Returns:
thisbuilder for use in a chained invocation
-
newKeyDescription
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newKeyDescription(String newKeyDescription) Initializes the optional valuenewKeyDescriptionto newKeyDescription.- Parameters:
newKeyDescription- The value for newKeyDescription- Returns:
thisbuilder for chained invocation
-
newKeyDescription
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newKeyDescription(Optional<String> newKeyDescription) Initializes the optional valuenewKeyDescriptionto newKeyDescription.- Parameters:
newKeyDescription- The value for newKeyDescription- Returns:
thisbuilder for use in a chained invocation
-
newBucketName
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newBucketName(String newBucketName) Initializes the optional valuenewBucketNameto newBucketName.- Parameters:
newBucketName- The value for newBucketName- Returns:
thisbuilder for chained invocation
-
newBucketName
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newBucketName(Optional<String> newBucketName) Initializes the optional valuenewBucketNameto newBucketName.- Parameters:
newBucketName- The value for newBucketName- Returns:
thisbuilder for use in a chained invocation
-
newBucketObjectLockEnabled
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newBucketObjectLockEnabled(boolean newBucketObjectLockEnabled) Initializes the optional valuenewBucketObjectLockEnabledto newBucketObjectLockEnabled.- Parameters:
newBucketObjectLockEnabled- The value for newBucketObjectLockEnabled- Returns:
thisbuilder for chained invocation
-
newBucketObjectLockEnabled
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newBucketObjectLockEnabled(Optional<Boolean> newBucketObjectLockEnabled) Initializes the optional valuenewBucketObjectLockEnabledto newBucketObjectLockEnabled.- Parameters:
newBucketObjectLockEnabled- The value for newBucketObjectLockEnabled- Returns:
thisbuilder for use in a chained invocation
-
existingStorageReservation
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder existingStorageReservation(int existingStorageReservation) Initializes the optional valueexistingStorageReservationto existingStorageReservation.- Parameters:
existingStorageReservation- The value for existingStorageReservation- Returns:
thisbuilder for chained invocation
-
existingStorageReservation
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder existingStorageReservation(Optional<Integer> existingStorageReservation) Initializes the optional valueexistingStorageReservationto existingStorageReservation.- Parameters:
existingStorageReservation- The value for existingStorageReservation- Returns:
thisbuilder for use in a chained invocation
-
additionalStorage
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder additionalStorage(int additionalStorage) Initializes the optional valueadditionalStorageto additionalStorage.- Parameters:
additionalStorage- The value for additionalStorage- Returns:
thisbuilder for chained invocation
-
additionalStorage
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder additionalStorage(Optional<Integer> additionalStorage) Initializes the optional valueadditionalStorageto additionalStorage.- Parameters:
additionalStorage- The value for additionalStorage- Returns:
thisbuilder for use in a chained invocation
-
newStorageReservation
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newStorageReservation(int newStorageReservation) Initializes the optional valuenewStorageReservationto newStorageReservation.- Parameters:
newStorageReservation- The value for newStorageReservation- Returns:
thisbuilder for chained invocation
-
newStorageReservation
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newStorageReservation(Optional<Integer> newStorageReservation) Initializes the optional valuenewStorageReservationto newStorageReservation.- Parameters:
newStorageReservation- The value for newStorageReservation- Returns:
thisbuilder for use in a chained invocation
-
currentMonthlyStorageCost
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder currentMonthlyStorageCost(double currentMonthlyStorageCost) Initializes the optional valuecurrentMonthlyStorageCostto currentMonthlyStorageCost.- Parameters:
currentMonthlyStorageCost- The value for currentMonthlyStorageCost- Returns:
thisbuilder for chained invocation
-
currentMonthlyStorageCost
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder currentMonthlyStorageCost(Optional<Double> currentMonthlyStorageCost) Initializes the optional valuecurrentMonthlyStorageCostto currentMonthlyStorageCost.- Parameters:
currentMonthlyStorageCost- The value for currentMonthlyStorageCost- Returns:
thisbuilder for use in a chained invocation
-
currency
Initializes the optional valuecurrencyto currency.- Parameters:
currency- The value for currency- Returns:
thisbuilder for chained invocation
-
currency
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder currency(Optional<String> currency) Initializes the optional valuecurrencyto currency.- Parameters:
currency- The value for currency- Returns:
thisbuilder for use in a chained invocation
-
additionalMonthlyStorageCost
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder additionalMonthlyStorageCost(double additionalMonthlyStorageCost) Initializes the optional valueadditionalMonthlyStorageCostto additionalMonthlyStorageCost.- Parameters:
additionalMonthlyStorageCost- The value for additionalMonthlyStorageCost- Returns:
thisbuilder for chained invocation
-
additionalMonthlyStorageCost
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder additionalMonthlyStorageCost(Optional<Double> additionalMonthlyStorageCost) Initializes the optional valueadditionalMonthlyStorageCostto additionalMonthlyStorageCost.- Parameters:
additionalMonthlyStorageCost- The value for additionalMonthlyStorageCost- Returns:
thisbuilder for use in a chained invocation
-
newMonthlyStorageCost
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newMonthlyStorageCost(double newMonthlyStorageCost) Initializes the optional valuenewMonthlyStorageCostto newMonthlyStorageCost.- Parameters:
newMonthlyStorageCost- The value for newMonthlyStorageCost- Returns:
thisbuilder for chained invocation
-
newMonthlyStorageCost
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newMonthlyStorageCost(Optional<Double> newMonthlyStorageCost) Initializes the optional valuenewMonthlyStorageCostto newMonthlyStorageCost.- Parameters:
newMonthlyStorageCost- The value for newMonthlyStorageCost- Returns:
thisbuilder for use in a chained invocation
-
accountName
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder accountName(String accountName) Initializes the optional valueaccountNameto accountName.- Parameters:
accountName- The value for accountName- Returns:
thisbuilder for chained invocation
-
accountName
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder accountName(Optional<String> accountName) Initializes the optional valueaccountNameto accountName.- Parameters:
accountName- The value for accountName- Returns:
thisbuilder for use in a chained invocation
-
originalAccountName
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder originalAccountName(String originalAccountName) Initializes the optional valueoriginalAccountNameto originalAccountName.- Parameters:
originalAccountName- The value for originalAccountName- Returns:
thisbuilder for chained invocation
-
originalAccountName
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder originalAccountName(Optional<String> originalAccountName) Initializes the optional valueoriginalAccountNameto originalAccountName.- Parameters:
originalAccountName- The value for originalAccountName- Returns:
thisbuilder for use in a chained invocation
-
newAccountName
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newAccountName(String newAccountName) Initializes the optional valuenewAccountNameto newAccountName.- Parameters:
newAccountName- The value for newAccountName- Returns:
thisbuilder for chained invocation
-
newAccountName
@CanIgnoreReturnValue public final ImmutableAwsEventResponse.Builder newAccountName(Optional<String> newAccountName) Initializes the optional valuenewAccountNameto newAccountName.- Parameters:
newAccountName- The value for newAccountName- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableAwsEventResponse.- Returns:
- An immutable instance of AwsEventResponse
- Throws:
IllegalStateException- if any required attributes are missing
-