@NotThreadSafe public static final class ImmutableBaCompanyResponse.Builder extends Object
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.
public final ImmutableBaCompanyResponse.Builder from(BaCompanyResponse instance)
BaCompanyResponse instance.
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.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder locationId(String locationId)
locationId attribute.locationId - The value for locationIdthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder lastActive(Instant lastActive)
lastActive to lastActive.lastActive - The value for lastActivethis builder for chained invocationpublic final ImmutableBaCompanyResponse.Builder lastActive(Optional<? extends Instant> lastActive)
lastActive to lastActive.lastActive - The value for lastActivethis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder uuid(String uuid)
uuid attribute.uuid - The value for uuidthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder isEnabled(boolean isEnabled)
isEnabled attribute.isEnabled - The value for isEnabledthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder companyId(String companyId)
companyId attribute.companyId - The value for companyIdthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder backupProtectionEnabled(boolean backupProtectionEnabled)
backupProtectionEnabled attribute.backupProtectionEnabled - The value for backupProtectionEnabledthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder backupProtectionPeriod(int backupProtectionPeriod)
backupProtectionPeriod attribute.backupProtectionPeriod - The value for backupProtectionPeriodthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder vmsBackedUp(int vmsBackedUp)
vmsBackedUp attribute.vmsBackedUp - The value for vmsBackedUpthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder vmsBackedUpToCloud(int vmsBackedUpToCloud)
vmsBackedUpToCloud attribute.vmsBackedUpToCloud - The value for vmsBackedUpToCloudthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder totalStorageQuota(long totalStorageQuota)
totalStorageQuota attribute.totalStorageQuota - The value for totalStorageQuotathis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder usedStorageQuota(long usedStorageQuota)
usedStorageQuota attribute.usedStorageQuota - The value for usedStorageQuotathis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder endpoint(String endpoint)
endpoint attribute.endpoint - The value for endpointthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder agentAndSubTenantCount(int agentAndSubTenantCount)
agentAndSubTenantCount attribute.agentAndSubTenantCount - The value for agentAndSubTenantCountthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder testDrive(boolean testDrive)
testDrive attribute.testDrive - The value for testDrivethis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder addBackupResources(BaBackupResourceResponse element)
backupResources list.element - A backupResources elementthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder addBackupResources(BaBackupResourceResponse... elements)
backupResources list.elements - An array of backupResources elementsthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder backupResources(Iterable<? extends BaBackupResourceResponse> elements)
backupResources list.elements - An iterable of backupResources elementsthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder addAllBackupResources(Iterable<? extends BaBackupResourceResponse> elements)
backupResources list.elements - An iterable of backupResources elementsthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder contractUuid(String contractUuid)
contractUuid attribute.contractUuid - The value for contractUuidthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder description(String description)
description attribute.description - The value for descriptionthis builder for use in a chained invocationpublic final ImmutableBaCompanyResponse.Builder instanceUid(String instanceUid)
instanceUid attribute.instanceUid - The value for instanceUidthis builder for use in a chained invocationpublic ImmutableBaCompanyResponse build()
ImmutableBaCompanyResponse.IllegalStateException - if any required attributes are missingCopyright © 2023 iland Internet Solutions, Corp. All rights reserved.