Class ImmutableBaCompanyResponse
java.lang.Object
com.iland.core.web.rest.response.vac.ImmutableBaCompanyResponse
- All Implemented Interfaces:
BaCompanyResponse
@Generated(from="BaCompanyResponse",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableBaCompanyResponse
extends Object
implements BaCompanyResponse
Immutable implementation of
BaCompanyResponse.
Use the builder to create immutable instances:
ImmutableBaCompanyResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableBaCompanyResponse. -
Method Summary
Modifier and TypeMethodDescriptionintGet the agent and sub tenant count.booleanIndicates whether deleted backup file protection is enabled.intNumber of days during which deleted backup files must be kept in the recycle bin on the Veeam Cloud Connect server.com.google.common.collect.ImmutableList<BaBackupResourceResponse>builder()Creates a builder forImmutableBaCompanyResponse.Get the company id associated with the VAC tenant.The contract uuid of the company that the VAC tenant belongs to.static ImmutableBaCompanyResponsecopyOf(BaCompanyResponse instance) Creates an immutable copy of aBaCompanyResponsevalue.The description of the VAC tenant.endpoint()URL endpoint of the VAC tenant.booleanThis instance is equal to all instances ofImmutableBaCompanyResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:name,locationId,lastActive,uuid,isEnabled,companyId,backupProtectionEnabled,backupProtectionPeriod,vmsBackedUp,vmsBackedUpToCloud,totalStorageQuota,usedStorageQuota,endpoint,agentAndSubTenantCount,isManagedByServiceProvider,isRepositoryStoredInAws,isImmutabilityEnabled,immutabilityInterval,testDrive,backupResources,contractUuid,description,instanceUid.Duration of a tenant's repository immutability period, in seconds.The instance uid of the VAC tenant.booleanWhether the VAC tenant is enabled or not.Indicates whether the tenant's repository immutability is enabled.booleanReturns whether the tenant is managed by service providerbooleanIndicates whether the tenant's repository is stored in AWS Object StorageGets last active.Gets location id.name()Gets company name configured in Veeam Cloud Connect or Veeam Availability Console.booleanIs the VAC tenant a test drive tenant?toString()Prints the immutable valueBaCompanyResponsewith attribute values.longTotal storage of the VAC tenant in MB.longUsed storage of the VAC tenant in MB.uuid()Get the uuid for a VAC tenant.intGets number of virtual machines protected with backup jobs.intGets number of virtual machines backed up to a cloud repository.withAgentAndSubTenantCount(int value) Copy the current immutable object by setting a value for theagentAndSubTenantCountattribute.withBackupProtectionEnabled(boolean value) Copy the current immutable object by setting a value for thebackupProtectionEnabledattribute.withBackupProtectionPeriod(int value) Copy the current immutable object by setting a value for thebackupProtectionPeriodattribute.withBackupResources(BaBackupResourceResponse... elements) Copy the current immutable object with elements that replace the content ofbackupResources.withBackupResources(Iterable<? extends BaBackupResourceResponse> elements) Copy the current immutable object with elements that replace the content ofbackupResources.withCompanyId(String value) Copy the current immutable object by setting a value for thecompanyIdattribute.withContractUuid(String value) Copy the current immutable object by setting a value for thecontractUuidattribute.withDescription(String value) Copy the current immutable object by setting a value for thedescriptionattribute.withEndpoint(String value) Copy the current immutable object by setting a value for theendpointattribute.withImmutabilityInterval(int value) Copy the current immutable object by setting a present value for the optionalimmutabilityIntervalattribute.withImmutabilityInterval(Optional<Integer> optional) Copy the current immutable object by setting an optional value for theimmutabilityIntervalattribute.withInstanceUid(String value) Copy the current immutable object by setting a value for theinstanceUidattribute.withIsEnabled(boolean value) Copy the current immutable object by setting a value for theisEnabledattribute.withIsImmutabilityEnabled(boolean value) Copy the current immutable object by setting a present value for the optionalisImmutabilityEnabledattribute.withIsImmutabilityEnabled(Optional<Boolean> optional) Copy the current immutable object by setting an optional value for theisImmutabilityEnabledattribute.withIsManagedByServiceProvider(boolean value) Copy the current immutable object by setting a value for theisManagedByServiceProviderattribute.withIsRepositoryStoredInAws(boolean value) Copy the current immutable object by setting a value for theisRepositoryStoredInAwsattribute.withLastActive(Instant value) Copy the current immutable object by setting a present value for the optionallastActiveattribute.withLastActive(Optional<? extends Instant> optional) Copy the current immutable object by setting an optional value for thelastActiveattribute.withLocationId(String value) Copy the current immutable object by setting a value for thelocationIdattribute.Copy the current immutable object by setting a value for thenameattribute.withTestDrive(boolean value) Copy the current immutable object by setting a value for thetestDriveattribute.withTotalStorageQuota(long value) Copy the current immutable object by setting a value for thetotalStorageQuotaattribute.withUsedStorageQuota(long value) Copy the current immutable object by setting a value for theusedStorageQuotaattribute.Copy the current immutable object by setting a value for theuuidattribute.withVmsBackedUp(int value) Copy the current immutable object by setting a value for thevmsBackedUpattribute.withVmsBackedUpToCloud(int value) Copy the current immutable object by setting a value for thevmsBackedUpToCloudattribute.
-
Method Details
-
name
Gets company name configured in Veeam Cloud Connect or Veeam Availability Console.- Specified by:
namein interfaceBaCompanyResponse
-
locationId
Gets location id.- Specified by:
locationIdin interfaceBaCompanyResponse
-
lastActive
Gets last active.- Specified by:
lastActivein interfaceBaCompanyResponse
-
uuid
Get the uuid for a VAC tenant.- Specified by:
uuidin interfaceBaCompanyResponse
-
isEnabled
public boolean isEnabled()Whether the VAC tenant is enabled or not.- Specified by:
isEnabledin interfaceBaCompanyResponse
-
companyId
Get the company id associated with the VAC tenant.- Specified by:
companyIdin interfaceBaCompanyResponse
-
backupProtectionEnabled
public boolean backupProtectionEnabled()Indicates whether deleted backup file protection is enabled.- Specified by:
backupProtectionEnabledin interfaceBaCompanyResponse
-
backupProtectionPeriod
public int backupProtectionPeriod()Number of days during which deleted backup files must be kept in the recycle bin on the Veeam Cloud Connect server.- Specified by:
backupProtectionPeriodin interfaceBaCompanyResponse
-
vmsBackedUp
public int vmsBackedUp()Gets number of virtual machines protected with backup jobs.- Specified by:
vmsBackedUpin interfaceBaCompanyResponse
-
vmsBackedUpToCloud
public int vmsBackedUpToCloud()Gets number of virtual machines backed up to a cloud repository.- Specified by:
vmsBackedUpToCloudin interfaceBaCompanyResponse
-
totalStorageQuota
public long totalStorageQuota()Total storage of the VAC tenant in MB.- Specified by:
totalStorageQuotain interfaceBaCompanyResponse
-
usedStorageQuota
public long usedStorageQuota()Used storage of the VAC tenant in MB.- Specified by:
usedStorageQuotain interfaceBaCompanyResponse
-
endpoint
URL endpoint of the VAC tenant.- Specified by:
endpointin interfaceBaCompanyResponse
-
agentAndSubTenantCount
public int agentAndSubTenantCount()Get the agent and sub tenant count. This count composed of the licenses CC_Server_Backup and CC_Workstation_Backup.- Specified by:
agentAndSubTenantCountin interfaceBaCompanyResponse
-
isManagedByServiceProvider
public boolean isManagedByServiceProvider()Returns whether the tenant is managed by service provider- Specified by:
isManagedByServiceProviderin interfaceBaCompanyResponse
-
isRepositoryStoredInAws
public boolean isRepositoryStoredInAws()Indicates whether the tenant's repository is stored in AWS Object Storage- Specified by:
isRepositoryStoredInAwsin interfaceBaCompanyResponse
-
isImmutabilityEnabled
Indicates whether the tenant's repository immutability is enabled. This is valid only if the repository is stored using AWS Object Storage, indicated by the attribute isRepositoryStoredInAWS.- Specified by:
isImmutabilityEnabledin interfaceBaCompanyResponse
-
immutabilityInterval
Duration of a tenant's repository immutability period, in seconds. This is valid only if the repository is stored using AWS Object Storage, indicated by the attribute isRepositoryStoredInAWS.- Specified by:
immutabilityIntervalin interfaceBaCompanyResponse
-
testDrive
public boolean testDrive()Is the VAC tenant a test drive tenant?- Specified by:
testDrivein interfaceBaCompanyResponse
-
backupResources
- Specified by:
backupResourcesin interfaceBaCompanyResponse- Returns:
- The value of the
backupResourcesattribute
-
contractUuid
The contract uuid of the company that the VAC tenant belongs to.- Specified by:
contractUuidin interfaceBaCompanyResponse- Returns:
Stringcontract uuid
-
description
The description of the VAC tenant.- Specified by:
descriptionin interfaceBaCompanyResponse- Returns:
Stringdescription
-
instanceUid
The instance uid of the VAC tenant.- Specified by:
instanceUidin interfaceBaCompanyResponse- Returns:
Stringinstance uid
-
withName
Copy the current immutable object by setting a value for thenameattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for name- Returns:
- A modified copy of the
thisobject
-
withLocationId
Copy the current immutable object by setting a value for thelocationIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for locationId- Returns:
- A modified copy of the
thisobject
-
withLastActive
Copy the current immutable object by setting a present value for the optionallastActiveattribute.- Parameters:
value- The value for lastActive- Returns:
- A modified copy of
thisobject
-
withLastActive
Copy the current immutable object by setting an optional value for thelastActiveattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for lastActive- Returns:
- A modified copy of
thisobject
-
withUuid
Copy the current immutable object by setting a value for theuuidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for uuid- Returns:
- A modified copy of the
thisobject
-
withIsEnabled
Copy the current immutable object by setting a value for theisEnabledattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isEnabled- Returns:
- A modified copy of the
thisobject
-
withCompanyId
Copy the current immutable object by setting a value for thecompanyIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for companyId- Returns:
- A modified copy of the
thisobject
-
withBackupProtectionEnabled
Copy the current immutable object by setting a value for thebackupProtectionEnabledattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for backupProtectionEnabled- Returns:
- A modified copy of the
thisobject
-
withBackupProtectionPeriod
Copy the current immutable object by setting a value for thebackupProtectionPeriodattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for backupProtectionPeriod- Returns:
- A modified copy of the
thisobject
-
withVmsBackedUp
Copy the current immutable object by setting a value for thevmsBackedUpattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for vmsBackedUp- Returns:
- A modified copy of the
thisobject
-
withVmsBackedUpToCloud
Copy the current immutable object by setting a value for thevmsBackedUpToCloudattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for vmsBackedUpToCloud- Returns:
- A modified copy of the
thisobject
-
withTotalStorageQuota
Copy the current immutable object by setting a value for thetotalStorageQuotaattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for totalStorageQuota- Returns:
- A modified copy of the
thisobject
-
withUsedStorageQuota
Copy the current immutable object by setting a value for theusedStorageQuotaattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for usedStorageQuota- Returns:
- A modified copy of the
thisobject
-
withEndpoint
Copy the current immutable object by setting a value for theendpointattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for endpoint- Returns:
- A modified copy of the
thisobject
-
withAgentAndSubTenantCount
Copy the current immutable object by setting a value for theagentAndSubTenantCountattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for agentAndSubTenantCount- Returns:
- A modified copy of the
thisobject
-
withIsManagedByServiceProvider
Copy the current immutable object by setting a value for theisManagedByServiceProviderattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isManagedByServiceProvider- Returns:
- A modified copy of the
thisobject
-
withIsRepositoryStoredInAws
Copy the current immutable object by setting a value for theisRepositoryStoredInAwsattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for isRepositoryStoredInAws- Returns:
- A modified copy of the
thisobject
-
withIsImmutabilityEnabled
Copy the current immutable object by setting a present value for the optionalisImmutabilityEnabledattribute.- Parameters:
value- The value for isImmutabilityEnabled- Returns:
- A modified copy of
thisobject
-
withIsImmutabilityEnabled
Copy the current immutable object by setting an optional value for theisImmutabilityEnabledattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for isImmutabilityEnabled- Returns:
- A modified copy of
thisobject
-
withImmutabilityInterval
Copy the current immutable object by setting a present value for the optionalimmutabilityIntervalattribute.- Parameters:
value- The value for immutabilityInterval- Returns:
- A modified copy of
thisobject
-
withImmutabilityInterval
Copy the current immutable object by setting an optional value for theimmutabilityIntervalattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for immutabilityInterval- Returns:
- A modified copy of
thisobject
-
withTestDrive
Copy the current immutable object by setting a value for thetestDriveattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for testDrive- Returns:
- A modified copy of the
thisobject
-
withBackupResources
Copy the current immutable object with elements that replace the content ofbackupResources.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBackupResources
public final ImmutableBaCompanyResponse withBackupResources(Iterable<? extends BaBackupResourceResponse> elements) Copy the current immutable object with elements that replace the content ofbackupResources. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of backupResources elements to set- Returns:
- A modified copy of
thisobject
-
withContractUuid
Copy the current immutable object by setting a value for thecontractUuidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for contractUuid- Returns:
- A modified copy of the
thisobject
-
withDescription
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description- Returns:
- A modified copy of the
thisobject
-
withInstanceUid
Copy the current immutable object by setting a value for theinstanceUidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for instanceUid- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableBaCompanyResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:name,locationId,lastActive,uuid,isEnabled,companyId,backupProtectionEnabled,backupProtectionPeriod,vmsBackedUp,vmsBackedUpToCloud,totalStorageQuota,usedStorageQuota,endpoint,agentAndSubTenantCount,isManagedByServiceProvider,isRepositoryStoredInAws,isImmutabilityEnabled,immutabilityInterval,testDrive,backupResources,contractUuid,description,instanceUid. -
toString
Prints the immutable valueBaCompanyResponsewith attribute values. -
copyOf
Creates an immutable copy of aBaCompanyResponsevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable BaCompanyResponse instance
-
builder
Creates a builder forImmutableBaCompanyResponse.ImmutableBaCompanyResponse.builder() .name(String) // requiredname.locationId(String) // requiredlocationId.lastActive(java.time.Instant) // optionallastActive.uuid(String) // requireduuid.isEnabled(boolean) // requiredisEnabled.companyId(String) // requiredcompanyId.backupProtectionEnabled(boolean) // requiredbackupProtectionEnabled.backupProtectionPeriod(int) // requiredbackupProtectionPeriod.vmsBackedUp(int) // requiredvmsBackedUp.vmsBackedUpToCloud(int) // requiredvmsBackedUpToCloud.totalStorageQuota(long) // requiredtotalStorageQuota.usedStorageQuota(long) // requiredusedStorageQuota.endpoint(String) // requiredendpoint.agentAndSubTenantCount(int) // requiredagentAndSubTenantCount.isManagedByServiceProvider(boolean) // requiredisManagedByServiceProvider.isRepositoryStoredInAws(boolean) // requiredisRepositoryStoredInAws.isImmutabilityEnabled(Boolean) // optionalisImmutabilityEnabled.immutabilityInterval(Integer) // optionalimmutabilityInterval.testDrive(boolean) // requiredtestDrive.addBackupResources|addAllBackupResources(com.iland.core.web.rest.response.vac.BaBackupResourceResponse) //backupResourceselements .contractUuid(String) // requiredcontractUuid.description(String) // requireddescription.instanceUid(String) // requiredinstanceUid.build();- Returns:
- A new ImmutableBaCompanyResponse builder
-