Class StampCapacityInner

java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.StampCapacityInner

public final class StampCapacityInner extends Object
Stamp capacity information.
  • Constructor Details

    • StampCapacityInner

      public StampCapacityInner()
  • Method Details

    • name

      public String name()
      Get the name property: Name of the stamp.
      Returns:
      the name value.
    • withName

      public StampCapacityInner withName(String name)
      Set the name property: Name of the stamp.
      Parameters:
      name - the name value to set.
      Returns:
      the StampCapacityInner object itself.
    • availableCapacity

      public Long availableCapacity()
      Get the availableCapacity property: Available capacity (# of machines, bytes of storage etc...).
      Returns:
      the availableCapacity value.
    • withAvailableCapacity

      public StampCapacityInner withAvailableCapacity(Long availableCapacity)
      Set the availableCapacity property: Available capacity (# of machines, bytes of storage etc...).
      Parameters:
      availableCapacity - the availableCapacity value to set.
      Returns:
      the StampCapacityInner object itself.
    • totalCapacity

      public Long totalCapacity()
      Get the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).
      Returns:
      the totalCapacity value.
    • withTotalCapacity

      public StampCapacityInner withTotalCapacity(Long totalCapacity)
      Set the totalCapacity property: Total capacity (# of machines, bytes of storage etc...).
      Parameters:
      totalCapacity - the totalCapacity value to set.
      Returns:
      the StampCapacityInner object itself.
    • unit

      public String unit()
      Get the unit property: Name of the unit.
      Returns:
      the unit value.
    • withUnit

      public StampCapacityInner withUnit(String unit)
      Set the unit property: Name of the unit.
      Parameters:
      unit - the unit value to set.
      Returns:
      the StampCapacityInner object itself.
    • computeMode

      public ComputeModeOptions computeMode()
      Get the computeMode property: Shared/dedicated workers.
      Returns:
      the computeMode value.
    • withComputeMode

      public StampCapacityInner withComputeMode(ComputeModeOptions computeMode)
      Set the computeMode property: Shared/dedicated workers.
      Parameters:
      computeMode - the computeMode value to set.
      Returns:
      the StampCapacityInner object itself.
    • workerSize

      public WorkerSizeOptions workerSize()
      Get the workerSize property: Size of the machines.
      Returns:
      the workerSize value.
    • withWorkerSize

      public StampCapacityInner withWorkerSize(WorkerSizeOptions workerSize)
      Set the workerSize property: Size of the machines.
      Parameters:
      workerSize - the workerSize value to set.
      Returns:
      the StampCapacityInner object itself.
    • workerSizeId

      public Integer workerSizeId()
      Get the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.
      Returns:
      the workerSizeId value.
    • withWorkerSizeId

      public StampCapacityInner withWorkerSizeId(Integer workerSizeId)
      Set the workerSizeId property: Size ID of machines: 0 - Small 1 - Medium 2 - Large.
      Parameters:
      workerSizeId - the workerSizeId value to set.
      Returns:
      the StampCapacityInner object itself.
    • excludeFromCapacityAllocation

      public Boolean excludeFromCapacityAllocation()
      Get the excludeFromCapacityAllocation property: If <code>true</code>, it includes basic apps. Basic apps are not used for capacity allocation.
      Returns:
      the excludeFromCapacityAllocation value.
    • withExcludeFromCapacityAllocation

      public StampCapacityInner withExcludeFromCapacityAllocation(Boolean excludeFromCapacityAllocation)
      Set the excludeFromCapacityAllocation property: If <code>true</code>, it includes basic apps. Basic apps are not used for capacity allocation.
      Parameters:
      excludeFromCapacityAllocation - the excludeFromCapacityAllocation value to set.
      Returns:
      the StampCapacityInner object itself.
    • isApplicableForAllComputeModes

      public Boolean isApplicableForAllComputeModes()
      Get the isApplicableForAllComputeModes property: <code>true</code> if capacity is applicable for all apps; otherwise, <code>false</code>.
      Returns:
      the isApplicableForAllComputeModes value.
    • withIsApplicableForAllComputeModes

      public StampCapacityInner withIsApplicableForAllComputeModes(Boolean isApplicableForAllComputeModes)
      Set the isApplicableForAllComputeModes property: <code>true</code> if capacity is applicable for all apps; otherwise, <code>false</code>.
      Parameters:
      isApplicableForAllComputeModes - the isApplicableForAllComputeModes value to set.
      Returns:
      the StampCapacityInner object itself.
    • siteMode

      public String siteMode()
      Get the siteMode property: Shared or Dedicated.
      Returns:
      the siteMode value.
    • withSiteMode

      public StampCapacityInner withSiteMode(String siteMode)
      Set the siteMode property: Shared or Dedicated.
      Parameters:
      siteMode - the siteMode value to set.
      Returns:
      the StampCapacityInner object itself.
    • isLinux

      public Boolean isLinux()
      Get the isLinux property: Is this a linux stamp capacity.
      Returns:
      the isLinux value.
    • withIsLinux

      public StampCapacityInner withIsLinux(Boolean isLinux)
      Set the isLinux property: Is this a linux stamp capacity.
      Parameters:
      isLinux - the isLinux value to set.
      Returns:
      the StampCapacityInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.