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 Details

    • from

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder from(BaCompanyResponse instance)
      Fill a builder with attribute values from the provided 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.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • name

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder name(String name)
      Initializes the value for the name attribute.
      Parameters:
      name - The value for name
      Returns:
      this builder for use in a chained invocation
    • locationId

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder locationId(String locationId)
      Initializes the value for the locationId attribute.
      Parameters:
      locationId - The value for locationId
      Returns:
      this builder for use in a chained invocation
    • lastActive

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder lastActive(Instant lastActive)
      Initializes the optional value lastActive to lastActive.
      Parameters:
      lastActive - The value for lastActive
      Returns:
      this builder for chained invocation
    • lastActive

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder lastActive(Optional<? extends Instant> lastActive)
      Initializes the optional value lastActive to lastActive.
      Parameters:
      lastActive - The value for lastActive
      Returns:
      this builder for use in a chained invocation
    • uuid

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder uuid(String uuid)
      Initializes the value for the uuid attribute.
      Parameters:
      uuid - The value for uuid
      Returns:
      this builder for use in a chained invocation
    • isEnabled

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder isEnabled(boolean isEnabled)
      Initializes the value for the isEnabled attribute.
      Parameters:
      isEnabled - The value for isEnabled
      Returns:
      this builder for use in a chained invocation
    • companyId

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder companyId(String companyId)
      Initializes the value for the companyId attribute.
      Parameters:
      companyId - The value for companyId
      Returns:
      this builder for use in a chained invocation
    • backupProtectionEnabled

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder backupProtectionEnabled(boolean backupProtectionEnabled)
      Initializes the value for the backupProtectionEnabled attribute.
      Parameters:
      backupProtectionEnabled - The value for backupProtectionEnabled
      Returns:
      this builder for use in a chained invocation
    • backupProtectionPeriod

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder backupProtectionPeriod(int backupProtectionPeriod)
      Initializes the value for the backupProtectionPeriod attribute.
      Parameters:
      backupProtectionPeriod - The value for backupProtectionPeriod
      Returns:
      this builder for use in a chained invocation
    • vmsBackedUp

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder vmsBackedUp(int vmsBackedUp)
      Initializes the value for the vmsBackedUp attribute.
      Parameters:
      vmsBackedUp - The value for vmsBackedUp
      Returns:
      this builder for use in a chained invocation
    • vmsBackedUpToCloud

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder vmsBackedUpToCloud(int vmsBackedUpToCloud)
      Initializes the value for the vmsBackedUpToCloud attribute.
      Parameters:
      vmsBackedUpToCloud - The value for vmsBackedUpToCloud
      Returns:
      this builder for use in a chained invocation
    • totalStorageQuota

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder totalStorageQuota(long totalStorageQuota)
      Initializes the value for the totalStorageQuota attribute.
      Parameters:
      totalStorageQuota - The value for totalStorageQuota
      Returns:
      this builder for use in a chained invocation
    • usedStorageQuota

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder usedStorageQuota(long usedStorageQuota)
      Initializes the value for the usedStorageQuota attribute.
      Parameters:
      usedStorageQuota - The value for usedStorageQuota
      Returns:
      this builder for use in a chained invocation
    • endpoint

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder endpoint(String endpoint)
      Initializes the value for the endpoint attribute.
      Parameters:
      endpoint - The value for endpoint
      Returns:
      this builder for use in a chained invocation
    • agentAndSubTenantCount

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder agentAndSubTenantCount(int agentAndSubTenantCount)
      Initializes the value for the agentAndSubTenantCount attribute.
      Parameters:
      agentAndSubTenantCount - The value for agentAndSubTenantCount
      Returns:
      this builder for use in a chained invocation
    • isManagedByServiceProvider

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder isManagedByServiceProvider(boolean isManagedByServiceProvider)
      Initializes the value for the isManagedByServiceProvider attribute.
      Parameters:
      isManagedByServiceProvider - The value for isManagedByServiceProvider
      Returns:
      this builder for use in a chained invocation
    • isRepositoryStoredInAws

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder isRepositoryStoredInAws(boolean isRepositoryStoredInAws)
      Initializes the value for the isRepositoryStoredInAws attribute.
      Parameters:
      isRepositoryStoredInAws - The value for isRepositoryStoredInAws
      Returns:
      this builder for use in a chained invocation
    • isImmutabilityEnabled

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder isImmutabilityEnabled(boolean isImmutabilityEnabled)
      Initializes the optional value isImmutabilityEnabled to isImmutabilityEnabled.
      Parameters:
      isImmutabilityEnabled - The value for isImmutabilityEnabled
      Returns:
      this builder for chained invocation
    • isImmutabilityEnabled

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder isImmutabilityEnabled(Optional<Boolean> isImmutabilityEnabled)
      Initializes the optional value isImmutabilityEnabled to isImmutabilityEnabled.
      Parameters:
      isImmutabilityEnabled - The value for isImmutabilityEnabled
      Returns:
      this builder for use in a chained invocation
    • immutabilityInterval

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder immutabilityInterval(int immutabilityInterval)
      Initializes the optional value immutabilityInterval to immutabilityInterval.
      Parameters:
      immutabilityInterval - The value for immutabilityInterval
      Returns:
      this builder for chained invocation
    • immutabilityInterval

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder immutabilityInterval(Optional<Integer> immutabilityInterval)
      Initializes the optional value immutabilityInterval to immutabilityInterval.
      Parameters:
      immutabilityInterval - The value for immutabilityInterval
      Returns:
      this builder for use in a chained invocation
    • testDrive

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder testDrive(boolean testDrive)
      Initializes the value for the testDrive attribute.
      Parameters:
      testDrive - The value for testDrive
      Returns:
      this builder for use in a chained invocation
    • addBackupResources

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder addBackupResources(BaBackupResourceResponse element)
      Adds one element to backupResources list.
      Parameters:
      element - A backupResources element
      Returns:
      this builder for use in a chained invocation
    • addBackupResources

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder addBackupResources(BaBackupResourceResponse... elements)
      Adds elements to backupResources list.
      Parameters:
      elements - An array of backupResources elements
      Returns:
      this builder for use in a chained invocation
    • backupResources

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder backupResources(Iterable<? extends BaBackupResourceResponse> elements)
      Sets or replaces all elements for backupResources list.
      Parameters:
      elements - An iterable of backupResources elements
      Returns:
      this builder for use in a chained invocation
    • addAllBackupResources

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder addAllBackupResources(Iterable<? extends BaBackupResourceResponse> elements)
      Adds elements to backupResources list.
      Parameters:
      elements - An iterable of backupResources elements
      Returns:
      this builder for use in a chained invocation
    • contractUuid

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder contractUuid(String contractUuid)
      Initializes the value for the contractUuid attribute.
      Parameters:
      contractUuid - The value for contractUuid
      Returns:
      this builder for use in a chained invocation
    • description

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder description(String description)
      Initializes the value for the description attribute.
      Parameters:
      description - The value for description
      Returns:
      this builder for use in a chained invocation
    • instanceUid

      @CanIgnoreReturnValue public final ImmutableBaCompanyResponse.Builder instanceUid(String instanceUid)
      Initializes the value for the instanceUid attribute.
      Parameters:
      instanceUid - The value for instanceUid
      Returns:
      this builder for use in a chained invocation
    • build

      Returns:
      An immutable instance of BaCompanyResponse
      Throws:
      IllegalStateException - if any required attributes are missing