Class LBServiceStatus.Builder

    • Constructor Detail

      • Builder

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

      • setActiveTransportNodes

        public LBServiceStatus.Builder setActiveTransportNodes​(java.util.List<java.lang.String> activeTransportNodes)
        Ids of load balancer service related active transport nodes. 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:
        activeTransportNodes - New value for the property.
      • setCpuUsage

        public LBServiceStatus.Builder setCpuUsage​(java.lang.Long cpuUsage)
        Cpu usage in percentage. 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:
        cpuUsage - New value for the property.
      • setErrorMessage

        public LBServiceStatus.Builder setErrorMessage​(java.lang.String errorMessage)
        Error message, if available. 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:
        errorMessage - New value for the property.
      • setLastUpdateTimestamp

        public LBServiceStatus.Builder setLastUpdateTimestamp​(java.lang.Long lastUpdateTimestamp)
        Timestamp when the data was last updated. 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:
        lastUpdateTimestamp - New value for the property.
      • setMemoryUsage

        public LBServiceStatus.Builder setMemoryUsage​(java.lang.Long memoryUsage)
        Memory usage in percentage. 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:
        memoryUsage - New value for the property.
      • setPools

        public LBServiceStatus.Builder setPools​(java.util.List<LBPoolStatus> pools)
        status of load balancer pools. 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:
        pools - New value for the property.
      • setServicePath

        public LBServiceStatus.Builder setServicePath​(java.lang.String servicePath)
        Load balancer service 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.
      • setServiceStatus

        public LBServiceStatus.Builder setServiceStatus​(java.lang.String serviceStatus)
        Possible values are: UP means the load balancer service is working fine on both transport-nodes(if have); PARTIALLY_UP means that some DLB instances on transport node are working successfully and some instances are not working successfully; DOWN means the load balancer service is down on both transport-nodes (if have), hence the load balancer will not respond to any requests; ERROR means error happens on transport-node(s) or no status is reported from transport-node(s). The load balancer service may be working (or not working); NO_STANDBY means load balancer service is working in one of the transport node while not in the other transport-node (if have). Hence if the load balancer service in the working transport-node goes down, the load balancer service will go down; DETACHED means that the load balancer service has no attachment setting and is not instantiated in any transport nodes; DISABLED means that admin state of load balancer service is DISABLED; UNKNOWN means that no status reported from transport-nodes.The load balancer service may be working(or not working). 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:
        serviceStatus - New value for the property.
      • setStandbyTransportNodes

        public LBServiceStatus.Builder setStandbyTransportNodes​(java.util.List<java.lang.String> standbyTransportNodes)
        Ids of load balancer service related standby transport nodes. 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:
        standbyTransportNodes - New value for the property.
      • setVirtualServers

        public LBServiceStatus.Builder setVirtualServers​(java.util.List<LBVirtualServerStatus> virtualServers)
        status of load balancer virtual servers. 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:
        virtualServers - New value for the property.
      • setEnforcementPointPath

        public LBServiceStatus.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.