Class LBServiceUsage.Builder

  • Enclosing class:
    LBServiceUsage

    public static final class LBServiceUsage.Builder
    extends java.lang.Object
    Builder class for LBServiceUsage.
    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of LBServiceUsage.
    • Method Detail

      • setCurrentPoolCount

        public LBServiceUsage.Builder setCurrentPoolCount​(java.lang.Long currentPoolCount)
        The current number of pools which has been configured in the given load balancer service. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        currentPoolCount - New value for the property.
      • setCurrentPoolMemberCount

        public LBServiceUsage.Builder setCurrentPoolMemberCount​(java.lang.Long currentPoolMemberCount)
        The current number of pool members which has been configured in the given load balancer service. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        currentPoolMemberCount - New value for the property.
      • setCurrentVirtualServerCount

        public LBServiceUsage.Builder setCurrentVirtualServerCount​(java.lang.Long currentVirtualServerCount)
        The current number of virtual servers which has been configured in the given load balancer service. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        currentVirtualServerCount - New value for the property.
      • setLastUpdateTimestamp

        public LBServiceUsage.Builder setLastUpdateTimestamp​(java.lang.Long lastUpdateTimestamp)
        Timestamp when the data was last updated. format: int64
        Parameters:
        lastUpdateTimestamp - New value for the property.
      • setPoolCapacity

        public LBServiceUsage.Builder setPoolCapacity​(java.lang.Long poolCapacity)
        Pool capacity means maximum number of pools which could be configured in the given load balancer service. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        poolCapacity - New value for the property.
      • setPoolMemberCapacity

        public LBServiceUsage.Builder setPoolMemberCapacity​(java.lang.Long poolMemberCapacity)
        Pool member capacity means maximum number of pool members which could be configured in the given load balancer service. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        poolMemberCapacity - New value for the property.
      • setServicePath

        public LBServiceUsage.Builder setServicePath​(java.lang.String servicePath)
        LBService object path. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        servicePath - New value for the property.
      • setUsagePercentage

        public LBServiceUsage.Builder setUsagePercentage​(java.lang.Double usagePercentage)
        The usage percentage is the largest usage percentage from virtual servers, pools and pool members for the load balancer service. If the property relax_scale_validation is set as true for LBService, it is possible that the value is larger than 100.0. For example, if SMALL LBS is deployed on MEDIUM edge node and configured with MEDIUM LBS virtual server scale number, LBS usage percentage is shown larger than 100.0. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        usagePercentage - New value for the property.
      • setVirtualServerCapacity

        public LBServiceUsage.Builder setVirtualServerCapacity​(java.lang.Long virtualServerCapacity)
        Virtual server capacity means maximum number of virtual servers which could be configured in the given load balancer service. format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        virtualServerCapacity - New value for the property.
      • setEnforcementPointPath

        public LBServiceUsage.Builder setEnforcementPointPath​(java.lang.String enforcementPointPath)
        Policy Path referencing the enforcement point where the info is fetched. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
        Parameters:
        enforcementPointPath - New value for the property.