Class ImmutableBaCompanyResponse.Builder
java.lang.Object
com.iland.core.web.rest.response.vac.ImmutableBaCompanyResponse.Builder
- Enclosing class:
- ImmutableBaCompanyResponse
@Generated(from="BaCompanyResponse",
generator="Immutables")
@NotThreadSafe
public static final class ImmutableBaCompanyResponse.Builder
extends Object
Builds instances of type
ImmutableBaCompanyResponse.
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 TypeMethodDescriptionaddAllBackupResources(Iterable<? extends BaBackupResourceResponse> elements) Adds elements tobackupResourceslist.Adds one element tobackupResourceslist.addBackupResources(BaBackupResourceResponse... elements) Adds elements tobackupResourceslist.agentAndSubTenantCount(int agentAndSubTenantCount) Initializes the value for theagentAndSubTenantCountattribute.backupProtectionEnabled(boolean backupProtectionEnabled) Initializes the value for thebackupProtectionEnabledattribute.backupProtectionPeriod(int backupProtectionPeriod) Initializes the value for thebackupProtectionPeriodattribute.backupResources(Iterable<? extends BaBackupResourceResponse> elements) Sets or replaces all elements forbackupResourceslist.build()Builds a newImmutableBaCompanyResponse.Initializes the value for thecompanyIdattribute.contractUuid(String contractUuid) Initializes the value for thecontractUuidattribute.description(String description) Initializes the value for thedescriptionattribute.Initializes the value for theendpointattribute.from(BaCompanyResponse instance) Fill a builder with attribute values from the providedBaCompanyResponseinstance.immutabilityInterval(int immutabilityInterval) Initializes the optional valueimmutabilityIntervalto immutabilityInterval.immutabilityInterval(Optional<Integer> immutabilityInterval) Initializes the optional valueimmutabilityIntervalto immutabilityInterval.instanceUid(String instanceUid) Initializes the value for theinstanceUidattribute.isEnabled(boolean isEnabled) Initializes the value for theisEnabledattribute.isImmutabilityEnabled(boolean isImmutabilityEnabled) Initializes the optional valueisImmutabilityEnabledto isImmutabilityEnabled.isImmutabilityEnabled(Optional<Boolean> isImmutabilityEnabled) Initializes the optional valueisImmutabilityEnabledto isImmutabilityEnabled.isManagedByServiceProvider(boolean isManagedByServiceProvider) Initializes the value for theisManagedByServiceProviderattribute.isRepositoryStoredInAws(boolean isRepositoryStoredInAws) Initializes the value for theisRepositoryStoredInAwsattribute.lastActive(Instant lastActive) Initializes the optional valuelastActiveto lastActive.lastActive(Optional<? extends Instant> lastActive) Initializes the optional valuelastActiveto lastActive.locationId(String locationId) Initializes the value for thelocationIdattribute.Initializes the value for thenameattribute.testDrive(boolean testDrive) Initializes the value for thetestDriveattribute.totalStorageQuota(long totalStorageQuota) Initializes the value for thetotalStorageQuotaattribute.usedStorageQuota(long usedStorageQuota) Initializes the value for theusedStorageQuotaattribute.Initializes the value for theuuidattribute.vmsBackedUp(int vmsBackedUp) Initializes the value for thevmsBackedUpattribute.vmsBackedUpToCloud(int vmsBackedUpToCloud) Initializes the value for thevmsBackedUpToCloudattribute.
-
Method Details
-
from
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder from(BaCompanyResponse instance) Fill a builder with attribute values from the providedBaCompanyResponseinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
name
Initializes the value for thenameattribute.- Parameters:
name- The value for name- Returns:
thisbuilder for use in a chained invocation
-
locationId
Initializes the value for thelocationIdattribute.- Parameters:
locationId- The value for locationId- Returns:
thisbuilder for use in a chained invocation
-
lastActive
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder lastActive(Instant lastActive) Initializes the optional valuelastActiveto lastActive.- Parameters:
lastActive- The value for lastActive- Returns:
thisbuilder for chained invocation
-
lastActive
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder lastActive(Optional<? extends Instant> lastActive) Initializes the optional valuelastActiveto lastActive.- Parameters:
lastActive- The value for lastActive- 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
-
isEnabled
Initializes the value for theisEnabledattribute.- Parameters:
isEnabled- The value for isEnabled- Returns:
thisbuilder for use in a chained invocation
-
companyId
Initializes the value for thecompanyIdattribute.- Parameters:
companyId- The value for companyId- Returns:
thisbuilder for use in a chained invocation
-
backupProtectionEnabled
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder backupProtectionEnabled(boolean backupProtectionEnabled) Initializes the value for thebackupProtectionEnabledattribute.- Parameters:
backupProtectionEnabled- The value for backupProtectionEnabled- Returns:
thisbuilder for use in a chained invocation
-
backupProtectionPeriod
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder backupProtectionPeriod(int backupProtectionPeriod) Initializes the value for thebackupProtectionPeriodattribute.- Parameters:
backupProtectionPeriod- The value for backupProtectionPeriod- Returns:
thisbuilder for use in a chained invocation
-
vmsBackedUp
Initializes the value for thevmsBackedUpattribute.- Parameters:
vmsBackedUp- The value for vmsBackedUp- Returns:
thisbuilder for use in a chained invocation
-
vmsBackedUpToCloud
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder vmsBackedUpToCloud(int vmsBackedUpToCloud) Initializes the value for thevmsBackedUpToCloudattribute.- Parameters:
vmsBackedUpToCloud- The value for vmsBackedUpToCloud- Returns:
thisbuilder for use in a chained invocation
-
totalStorageQuota
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder totalStorageQuota(long totalStorageQuota) Initializes the value for thetotalStorageQuotaattribute.- Parameters:
totalStorageQuota- The value for totalStorageQuota- Returns:
thisbuilder for use in a chained invocation
-
usedStorageQuota
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder usedStorageQuota(long usedStorageQuota) Initializes the value for theusedStorageQuotaattribute.- Parameters:
usedStorageQuota- The value for usedStorageQuota- Returns:
thisbuilder for use in a chained invocation
-
endpoint
Initializes the value for theendpointattribute.- Parameters:
endpoint- The value for endpoint- Returns:
thisbuilder for use in a chained invocation
-
agentAndSubTenantCount
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder agentAndSubTenantCount(int agentAndSubTenantCount) Initializes the value for theagentAndSubTenantCountattribute.- Parameters:
agentAndSubTenantCount- The value for agentAndSubTenantCount- Returns:
thisbuilder for use in a chained invocation
-
isManagedByServiceProvider
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder isManagedByServiceProvider(boolean isManagedByServiceProvider) Initializes the value for theisManagedByServiceProviderattribute.- Parameters:
isManagedByServiceProvider- The value for isManagedByServiceProvider- Returns:
thisbuilder for use in a chained invocation
-
isRepositoryStoredInAws
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder isRepositoryStoredInAws(boolean isRepositoryStoredInAws) Initializes the value for theisRepositoryStoredInAwsattribute.- Parameters:
isRepositoryStoredInAws- The value for isRepositoryStoredInAws- Returns:
thisbuilder for use in a chained invocation
-
isImmutabilityEnabled
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder isImmutabilityEnabled(boolean isImmutabilityEnabled) Initializes the optional valueisImmutabilityEnabledto isImmutabilityEnabled.- Parameters:
isImmutabilityEnabled- The value for isImmutabilityEnabled- Returns:
thisbuilder for chained invocation
-
isImmutabilityEnabled
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder isImmutabilityEnabled(Optional<Boolean> isImmutabilityEnabled) Initializes the optional valueisImmutabilityEnabledto isImmutabilityEnabled.- Parameters:
isImmutabilityEnabled- The value for isImmutabilityEnabled- Returns:
thisbuilder for use in a chained invocation
-
immutabilityInterval
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder immutabilityInterval(int immutabilityInterval) Initializes the optional valueimmutabilityIntervalto immutabilityInterval.- Parameters:
immutabilityInterval- The value for immutabilityInterval- Returns:
thisbuilder for chained invocation
-
immutabilityInterval
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder immutabilityInterval(Optional<Integer> immutabilityInterval) Initializes the optional valueimmutabilityIntervalto immutabilityInterval.- Parameters:
immutabilityInterval- The value for immutabilityInterval- Returns:
thisbuilder for use in a chained invocation
-
testDrive
Initializes the value for thetestDriveattribute.- Parameters:
testDrive- The value for testDrive- Returns:
thisbuilder for use in a chained invocation
-
addBackupResources
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder addBackupResources(BaBackupResourceResponse element) Adds one element tobackupResourceslist.- Parameters:
element- A backupResources element- Returns:
thisbuilder for use in a chained invocation
-
addBackupResources
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder addBackupResources(BaBackupResourceResponse... elements) Adds elements tobackupResourceslist.- Parameters:
elements- An array of backupResources elements- Returns:
thisbuilder for use in a chained invocation
-
backupResources
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder backupResources(Iterable<? extends BaBackupResourceResponse> elements) Sets or replaces all elements forbackupResourceslist.- Parameters:
elements- An iterable of backupResources elements- Returns:
thisbuilder for use in a chained invocation
-
addAllBackupResources
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder addAllBackupResources(Iterable<? extends BaBackupResourceResponse> elements) Adds elements tobackupResourceslist.- Parameters:
elements- An iterable of backupResources elements- Returns:
thisbuilder for use in a chained invocation
-
contractUuid
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder contractUuid(String contractUuid) Initializes the value for thecontractUuidattribute.- Parameters:
contractUuid- The value for contractUuid- Returns:
thisbuilder for use in a chained invocation
-
description
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder description(String description) Initializes the value for thedescriptionattribute.- Parameters:
description- The value for description- Returns:
thisbuilder for use in a chained invocation
-
instanceUid
@CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder instanceUid(String instanceUid) Initializes the value for theinstanceUidattribute.- Parameters:
instanceUid- The value for instanceUid- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newImmutableBaCompanyResponse.- Returns:
- An immutable instance of BaCompanyResponse
- Throws:
IllegalStateException- if any required attributes are missing
-