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().

  • Method Details

    • name

      public String name()
      Gets company name configured in Veeam Cloud Connect or Veeam Availability Console.
      Specified by:
      name in interface BaCompanyResponse
    • locationId

      public String locationId()
      Gets location id.
      Specified by:
      locationId in interface BaCompanyResponse
    • lastActive

      public Optional<Instant> lastActive()
      Gets last active.
      Specified by:
      lastActive in interface BaCompanyResponse
    • uuid

      public String uuid()
      Get the uuid for a VAC tenant.
      Specified by:
      uuid in interface BaCompanyResponse
    • isEnabled

      public boolean isEnabled()
      Whether the VAC tenant is enabled or not.
      Specified by:
      isEnabled in interface BaCompanyResponse
    • companyId

      public String companyId()
      Get the company id associated with the VAC tenant.
      Specified by:
      companyId in interface BaCompanyResponse
    • backupProtectionEnabled

      public boolean backupProtectionEnabled()
      Indicates whether deleted backup file protection is enabled.
      Specified by:
      backupProtectionEnabled in interface BaCompanyResponse
    • 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:
      backupProtectionPeriod in interface BaCompanyResponse
    • vmsBackedUp

      public int vmsBackedUp()
      Gets number of virtual machines protected with backup jobs.
      Specified by:
      vmsBackedUp in interface BaCompanyResponse
    • vmsBackedUpToCloud

      public int vmsBackedUpToCloud()
      Gets number of virtual machines backed up to a cloud repository.
      Specified by:
      vmsBackedUpToCloud in interface BaCompanyResponse
    • totalStorageQuota

      public long totalStorageQuota()
      Total storage of the VAC tenant in MB.
      Specified by:
      totalStorageQuota in interface BaCompanyResponse
    • usedStorageQuota

      public long usedStorageQuota()
      Used storage of the VAC tenant in MB.
      Specified by:
      usedStorageQuota in interface BaCompanyResponse
    • endpoint

      public String endpoint()
      URL endpoint of the VAC tenant.
      Specified by:
      endpoint in interface BaCompanyResponse
    • 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:
      agentAndSubTenantCount in interface BaCompanyResponse
    • isManagedByServiceProvider

      public boolean isManagedByServiceProvider()
      Returns whether the tenant is managed by service provider
      Specified by:
      isManagedByServiceProvider in interface BaCompanyResponse
    • isRepositoryStoredInAws

      public boolean isRepositoryStoredInAws()
      Indicates whether the tenant's repository is stored in AWS Object Storage
      Specified by:
      isRepositoryStoredInAws in interface BaCompanyResponse
    • isImmutabilityEnabled

      public Optional<Boolean> 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:
      isImmutabilityEnabled in interface BaCompanyResponse
    • immutabilityInterval

      public Optional<Integer> 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:
      immutabilityInterval in interface BaCompanyResponse
    • testDrive

      public boolean testDrive()
      Is the VAC tenant a test drive tenant?
      Specified by:
      testDrive in interface BaCompanyResponse
    • backupResources

      public com.google.common.collect.ImmutableList<BaBackupResourceResponse> backupResources()
      Specified by:
      backupResources in interface BaCompanyResponse
      Returns:
      The value of the backupResources attribute
    • contractUuid

      public String contractUuid()
      The contract uuid of the company that the VAC tenant belongs to.
      Specified by:
      contractUuid in interface BaCompanyResponse
      Returns:
      String contract uuid
    • description

      public String description()
      The description of the VAC tenant.
      Specified by:
      description in interface BaCompanyResponse
      Returns:
      String description
    • instanceUid

      public String instanceUid()
      The instance uid of the VAC tenant.
      Specified by:
      instanceUid in interface BaCompanyResponse
      Returns:
      String instance uid
    • withName

      public final ImmutableBaCompanyResponse withName(String value)
      Copy the current immutable object by setting a value for the name attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for name
      Returns:
      A modified copy of the this object
    • withLocationId

      public final ImmutableBaCompanyResponse withLocationId(String value)
      Copy the current immutable object by setting a value for the locationId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for locationId
      Returns:
      A modified copy of the this object
    • withLastActive

      public final ImmutableBaCompanyResponse withLastActive(Instant value)
      Copy the current immutable object by setting a present value for the optional lastActive attribute.
      Parameters:
      value - The value for lastActive
      Returns:
      A modified copy of this object
    • withLastActive

      public final ImmutableBaCompanyResponse withLastActive(Optional<? extends Instant> optional)
      Copy the current immutable object by setting an optional value for the lastActive attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for lastActive
      Returns:
      A modified copy of this object
    • withUuid

      public final ImmutableBaCompanyResponse withUuid(String value)
      Copy the current immutable object by setting a value for the uuid attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for uuid
      Returns:
      A modified copy of the this object
    • withIsEnabled

      public final ImmutableBaCompanyResponse withIsEnabled(boolean value)
      Copy the current immutable object by setting a value for the isEnabled attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for isEnabled
      Returns:
      A modified copy of the this object
    • withCompanyId

      public final ImmutableBaCompanyResponse withCompanyId(String value)
      Copy the current immutable object by setting a value for the companyId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for companyId
      Returns:
      A modified copy of the this object
    • withBackupProtectionEnabled

      public final ImmutableBaCompanyResponse withBackupProtectionEnabled(boolean value)
      Copy the current immutable object by setting a value for the backupProtectionEnabled attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for backupProtectionEnabled
      Returns:
      A modified copy of the this object
    • withBackupProtectionPeriod

      public final ImmutableBaCompanyResponse withBackupProtectionPeriod(int value)
      Copy the current immutable object by setting a value for the backupProtectionPeriod attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for backupProtectionPeriod
      Returns:
      A modified copy of the this object
    • withVmsBackedUp

      public final ImmutableBaCompanyResponse withVmsBackedUp(int value)
      Copy the current immutable object by setting a value for the vmsBackedUp attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for vmsBackedUp
      Returns:
      A modified copy of the this object
    • withVmsBackedUpToCloud

      public final ImmutableBaCompanyResponse withVmsBackedUpToCloud(int value)
      Copy the current immutable object by setting a value for the vmsBackedUpToCloud attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for vmsBackedUpToCloud
      Returns:
      A modified copy of the this object
    • withTotalStorageQuota

      public final ImmutableBaCompanyResponse withTotalStorageQuota(long value)
      Copy the current immutable object by setting a value for the totalStorageQuota attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for totalStorageQuota
      Returns:
      A modified copy of the this object
    • withUsedStorageQuota

      public final ImmutableBaCompanyResponse withUsedStorageQuota(long value)
      Copy the current immutable object by setting a value for the usedStorageQuota attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for usedStorageQuota
      Returns:
      A modified copy of the this object
    • withEndpoint

      public final ImmutableBaCompanyResponse withEndpoint(String value)
      Copy the current immutable object by setting a value for the endpoint attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for endpoint
      Returns:
      A modified copy of the this object
    • withAgentAndSubTenantCount

      public final ImmutableBaCompanyResponse withAgentAndSubTenantCount(int value)
      Copy the current immutable object by setting a value for the agentAndSubTenantCount attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for agentAndSubTenantCount
      Returns:
      A modified copy of the this object
    • withIsManagedByServiceProvider

      public final ImmutableBaCompanyResponse withIsManagedByServiceProvider(boolean value)
      Copy the current immutable object by setting a value for the isManagedByServiceProvider attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for isManagedByServiceProvider
      Returns:
      A modified copy of the this object
    • withIsRepositoryStoredInAws

      public final ImmutableBaCompanyResponse withIsRepositoryStoredInAws(boolean value)
      Copy the current immutable object by setting a value for the isRepositoryStoredInAws attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for isRepositoryStoredInAws
      Returns:
      A modified copy of the this object
    • withIsImmutabilityEnabled

      public final ImmutableBaCompanyResponse withIsImmutabilityEnabled(boolean value)
      Copy the current immutable object by setting a present value for the optional isImmutabilityEnabled attribute.
      Parameters:
      value - The value for isImmutabilityEnabled
      Returns:
      A modified copy of this object
    • withIsImmutabilityEnabled

      public final ImmutableBaCompanyResponse withIsImmutabilityEnabled(Optional<Boolean> optional)
      Copy the current immutable object by setting an optional value for the isImmutabilityEnabled attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for isImmutabilityEnabled
      Returns:
      A modified copy of this object
    • withImmutabilityInterval

      public final ImmutableBaCompanyResponse withImmutabilityInterval(int value)
      Copy the current immutable object by setting a present value for the optional immutabilityInterval attribute.
      Parameters:
      value - The value for immutabilityInterval
      Returns:
      A modified copy of this object
    • withImmutabilityInterval

      public final ImmutableBaCompanyResponse withImmutabilityInterval(Optional<Integer> optional)
      Copy the current immutable object by setting an optional value for the immutabilityInterval attribute. An equality check is used on inner nullable value to prevent copying of the same value by returning this.
      Parameters:
      optional - A value for immutabilityInterval
      Returns:
      A modified copy of this object
    • withTestDrive

      public final ImmutableBaCompanyResponse withTestDrive(boolean value)
      Copy the current immutable object by setting a value for the testDrive attribute. A value equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for testDrive
      Returns:
      A modified copy of the this object
    • withBackupResources

      public final ImmutableBaCompanyResponse withBackupResources(BaBackupResourceResponse... elements)
      Copy the current immutable object with elements that replace the content of backupResources.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withBackupResources

      public final ImmutableBaCompanyResponse withBackupResources(Iterable<? extends BaBackupResourceResponse> elements)
      Copy the current immutable object with elements that replace the content of backupResources. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of backupResources elements to set
      Returns:
      A modified copy of this object
    • withContractUuid

      public final ImmutableBaCompanyResponse withContractUuid(String value)
      Copy the current immutable object by setting a value for the contractUuid attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for contractUuid
      Returns:
      A modified copy of the this object
    • withDescription

      public final ImmutableBaCompanyResponse withDescription(String value)
      Copy the current immutable object by setting a value for the description attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for description
      Returns:
      A modified copy of the this object
    • withInstanceUid

      public final ImmutableBaCompanyResponse withInstanceUid(String value)
      Copy the current immutable object by setting a value for the instanceUid attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for instanceUid
      Returns:
      A modified copy of the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of ImmutableBaCompanyResponse that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • 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.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value BaCompanyResponse with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static ImmutableBaCompanyResponse copyOf(BaCompanyResponse instance)
      Creates an immutable copy of a BaCompanyResponse value. 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

      public static ImmutableBaCompanyResponse.Builder builder()
      Creates a builder for ImmutableBaCompanyResponse.
       ImmutableBaCompanyResponse.builder()
          .name(String) // required name
          .locationId(String) // required locationId
          .lastActive(java.time.Instant) // optional lastActive
          .uuid(String) // required uuid
          .isEnabled(boolean) // required isEnabled
          .companyId(String) // required companyId
          .backupProtectionEnabled(boolean) // required backupProtectionEnabled
          .backupProtectionPeriod(int) // required backupProtectionPeriod
          .vmsBackedUp(int) // required vmsBackedUp
          .vmsBackedUpToCloud(int) // required vmsBackedUpToCloud
          .totalStorageQuota(long) // required totalStorageQuota
          .usedStorageQuota(long) // required usedStorageQuota
          .endpoint(String) // required endpoint
          .agentAndSubTenantCount(int) // required agentAndSubTenantCount
          .isManagedByServiceProvider(boolean) // required isManagedByServiceProvider
          .isRepositoryStoredInAws(boolean) // required isRepositoryStoredInAws
          .isImmutabilityEnabled(Boolean) // optional isImmutabilityEnabled
          .immutabilityInterval(Integer) // optional immutabilityInterval
          .testDrive(boolean) // required testDrive
          .addBackupResources|addAllBackupResources(com.iland.core.web.rest.response.vac.BaBackupResourceResponse) // backupResources elements
          .contractUuid(String) // required contractUuid
          .description(String) // required description
          .instanceUid(String) // required instanceUid
          .build();
       
      Returns:
      A new ImmutableBaCompanyResponse builder