Class LBPoolStatus.Builder

  • Enclosing class:
    LBPoolStatus

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

      • Builder

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

      • setLastUpdateTimestamp

        public LBPoolStatus.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.
      • setMembers

        public LBPoolStatus.Builder setMembers​(java.util.List<LBPoolMemberStatus> members)
        Status of load balancer pool members. 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:
        members - New value for the property.
      • setPoolPath

        public LBPoolStatus.Builder setPoolPath​(java.lang.String poolPath)
        Load balancer pool 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:
        poolPath - New value for the property.
      • setStatus

        public LBPoolStatus.Builder setStatus​(java.lang.String status)
        Possible values are: UP means that all primary members are in UP status. PARTIALLY_UP means that some(not all) primary members are in UP status, the number of these active members is larger or equal to certain number(min_active_members) which is defined in LBPool. When there are no backup members which are in the UP status, the number(min_active_members) would be ignored. PRIMARY_DOWN means that less than certain(min_active_members) primary members are in UP status but backup members are in UP status, connections to this pool would be dispatched to backup members. DOWN means that all primary and backup members are DOWN. DETACHED means that the pool is not bound to any virtual server. UNKOWN means that no status reported from transport-nodes. The associated 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:
        status - New value for the property.
      • setEnforcementPointPath

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