All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.cs20151215.models.DescribeClusterNodesResponseBody Maven / Gradle / Ivy

There is a newer version: 2.0.42
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cs20151215.models;

import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;

/**
 * {@link DescribeClusterNodesResponseBody} extends {@link TeaModel}
 *
 * 

DescribeClusterNodesResponseBody

*/ public class DescribeClusterNodesResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("nodes") private java.util.List < Nodes> nodes; @com.aliyun.core.annotation.NameInMap("page") private Page page; private DescribeClusterNodesResponseBody(Builder builder) { this.nodes = builder.nodes; this.page = builder.page; } public static Builder builder() { return new Builder(); } public static DescribeClusterNodesResponseBody create() { return builder().build(); } /** * @return nodes */ public java.util.List < Nodes> getNodes() { return this.nodes; } /** * @return page */ public Page getPage() { return this.page; } public static final class Builder { private java.util.List < Nodes> nodes; private Page page; /** * The details of the nodes in the cluster. */ public Builder nodes(java.util.List < Nodes> nodes) { this.nodes = nodes; return this; } /** * The pagination information. */ public Builder page(Page page) { this.page = page; return this; } public DescribeClusterNodesResponseBody build() { return new DescribeClusterNodesResponseBody(this); } } public static class Nodes extends TeaModel { @com.aliyun.core.annotation.NameInMap("creation_time") private String creationTime; @com.aliyun.core.annotation.NameInMap("error_message") private String errorMessage; @com.aliyun.core.annotation.NameInMap("expired_time") private String expiredTime; @com.aliyun.core.annotation.NameInMap("host_name") private String hostName; @com.aliyun.core.annotation.NameInMap("image_id") private String imageId; @com.aliyun.core.annotation.NameInMap("instance_charge_type") private String instanceChargeType; @com.aliyun.core.annotation.NameInMap("instance_id") private String instanceId; @com.aliyun.core.annotation.NameInMap("instance_name") private String instanceName; @com.aliyun.core.annotation.NameInMap("instance_role") private String instanceRole; @com.aliyun.core.annotation.NameInMap("instance_status") private String instanceStatus; @com.aliyun.core.annotation.NameInMap("instance_type") private String instanceType; @com.aliyun.core.annotation.NameInMap("instance_type_family") private String instanceTypeFamily; @com.aliyun.core.annotation.NameInMap("ip_address") private java.util.List < String > ipAddress; @com.aliyun.core.annotation.NameInMap("is_aliyun_node") private Boolean isAliyunNode; @com.aliyun.core.annotation.NameInMap("node_name") private String nodeName; @com.aliyun.core.annotation.NameInMap("node_status") private String nodeStatus; @com.aliyun.core.annotation.NameInMap("nodepool_id") private String nodepoolId; @com.aliyun.core.annotation.NameInMap("source") private String source; @com.aliyun.core.annotation.NameInMap("spot_strategy") private String spotStrategy; @com.aliyun.core.annotation.NameInMap("state") private String state; private Nodes(Builder builder) { this.creationTime = builder.creationTime; this.errorMessage = builder.errorMessage; this.expiredTime = builder.expiredTime; this.hostName = builder.hostName; this.imageId = builder.imageId; this.instanceChargeType = builder.instanceChargeType; this.instanceId = builder.instanceId; this.instanceName = builder.instanceName; this.instanceRole = builder.instanceRole; this.instanceStatus = builder.instanceStatus; this.instanceType = builder.instanceType; this.instanceTypeFamily = builder.instanceTypeFamily; this.ipAddress = builder.ipAddress; this.isAliyunNode = builder.isAliyunNode; this.nodeName = builder.nodeName; this.nodeStatus = builder.nodeStatus; this.nodepoolId = builder.nodepoolId; this.source = builder.source; this.spotStrategy = builder.spotStrategy; this.state = builder.state; } public static Builder builder() { return new Builder(); } public static Nodes create() { return builder().build(); } /** * @return creationTime */ public String getCreationTime() { return this.creationTime; } /** * @return errorMessage */ public String getErrorMessage() { return this.errorMessage; } /** * @return expiredTime */ public String getExpiredTime() { return this.expiredTime; } /** * @return hostName */ public String getHostName() { return this.hostName; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return instanceChargeType */ public String getInstanceChargeType() { return this.instanceChargeType; } /** * @return instanceId */ public String getInstanceId() { return this.instanceId; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return instanceRole */ public String getInstanceRole() { return this.instanceRole; } /** * @return instanceStatus */ public String getInstanceStatus() { return this.instanceStatus; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return instanceTypeFamily */ public String getInstanceTypeFamily() { return this.instanceTypeFamily; } /** * @return ipAddress */ public java.util.List < String > getIpAddress() { return this.ipAddress; } /** * @return isAliyunNode */ public Boolean getIsAliyunNode() { return this.isAliyunNode; } /** * @return nodeName */ public String getNodeName() { return this.nodeName; } /** * @return nodeStatus */ public String getNodeStatus() { return this.nodeStatus; } /** * @return nodepoolId */ public String getNodepoolId() { return this.nodepoolId; } /** * @return source */ public String getSource() { return this.source; } /** * @return spotStrategy */ public String getSpotStrategy() { return this.spotStrategy; } /** * @return state */ public String getState() { return this.state; } public static final class Builder { private String creationTime; private String errorMessage; private String expiredTime; private String hostName; private String imageId; private String instanceChargeType; private String instanceId; private String instanceName; private String instanceRole; private String instanceStatus; private String instanceType; private String instanceTypeFamily; private java.util.List < String > ipAddress; private Boolean isAliyunNode; private String nodeName; private String nodeStatus; private String nodepoolId; private String source; private String spotStrategy; private String state; /** * The time when the node was created. */ public Builder creationTime(String creationTime) { this.creationTime = creationTime; return this; } /** * The error message generated when the node was created. */ public Builder errorMessage(String errorMessage) { this.errorMessage = errorMessage; return this; } /** * The expiration date of the node. */ public Builder expiredTime(String expiredTime) { this.expiredTime = expiredTime; return this; } /** * The name of the host. */ public Builder hostName(String hostName) { this.hostName = hostName; return this; } /** * The ID of the system image that is used by the node. */ public Builder imageId(String imageId) { this.imageId = imageId; return this; } /** * The billing method of the node. Valid values: *

* * * `PrePaid`: the subscription billing method. If the value is PrePaid, make sure that you have a sufficient balance or credit in your account. Otherwise, an `InvalidPayMethod` error is returned. * * `PostPaid`: the pay-as-you-go billing method. */ public Builder instanceChargeType(String instanceChargeType) { this.instanceChargeType = instanceChargeType; return this; } /** * The ID of the instance. */ public Builder instanceId(String instanceId) { this.instanceId = instanceId; return this; } /** * The name of the instance on which the node is deployed. */ public Builder instanceName(String instanceName) { this.instanceName = instanceName; return this; } /** * The role of the node. Valid values: *

* * * Master: master node * * Worker: worker node */ public Builder instanceRole(String instanceRole) { this.instanceRole = instanceRole; return this; } /** * The status of the node. */ public Builder instanceStatus(String instanceStatus) { this.instanceStatus = instanceStatus; return this; } /** * The type of the node. */ public Builder instanceType(String instanceType) { this.instanceType = instanceType; return this; } /** * The ECS instance family of the node. */ public Builder instanceTypeFamily(String instanceTypeFamily) { this.instanceTypeFamily = instanceTypeFamily; return this; } /** * The IP address of the node. */ public Builder ipAddress(java.util.List < String > ipAddress) { this.ipAddress = ipAddress; return this; } /** * Indicates whether the instance on which the node is deployed is provided by Alibaba Cloud. Valid values: *

* * * `true`: The instance is provided by Alibaba Cloud. * * `false`: The instance is not provided by Alibaba Cloud. */ public Builder isAliyunNode(Boolean isAliyunNode) { this.isAliyunNode = isAliyunNode; return this; } /** * The name of the node. This name is the identifier of the node in the cluster. */ public Builder nodeName(String nodeName) { this.nodeName = nodeName; return this; } /** * Indicates whether the node is ready. Valid values: *

* * * `Ready`: The node is ready. * * `NotReady`: The node is not ready. * * `Unknown`: The status of the node is unknown. * * `Offline`: The node is offline. */ public Builder nodeStatus(String nodeStatus) { this.nodeStatus = nodeStatus; return this; } /** * The node pool ID. */ public Builder nodepoolId(String nodepoolId) { this.nodepoolId = nodepoolId; return this; } /** * Indicates how the node is initialized. A node can be manually created or created by using Resource Orchestration Service (ROS). */ public Builder source(String source) { this.source = source; return this; } /** * The type of preemptible instance. Valid values: *

* * * NoSpot: a non-preemptible instance. * * SpotWithPriceLimit: a preemptible instance that is configured with the highest bid price. * * SpotAsPriceGo: a preemptible instance for which the system automatically bids based on the current market price. */ public Builder spotStrategy(String spotStrategy) { this.spotStrategy = spotStrategy; return this; } /** * The status of the node. Valid values: *

* * * `pending`: The node is being created. * * `running`: The node is running. * * `starting`: The node is being started. * * `stopping`: The node is being stopped. * * `stopped`: The node is stopped. */ public Builder state(String state) { this.state = state; return this; } public Nodes build() { return new Nodes(this); } } } public static class Page extends TeaModel { @com.aliyun.core.annotation.NameInMap("page_number") private Integer pageNumber; @com.aliyun.core.annotation.NameInMap("page_size") private Integer pageSize; @com.aliyun.core.annotation.NameInMap("total_count") private Integer totalCount; private Page(Builder builder) { this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.totalCount = builder.totalCount; } public static Builder builder() { return new Builder(); } public static Page create() { return builder().build(); } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return totalCount */ public Integer getTotalCount() { return this.totalCount; } public static final class Builder { private Integer pageNumber; private Integer pageSize; private Integer totalCount; /** * The page number. */ public Builder pageNumber(Integer pageNumber) { this.pageNumber = pageNumber; return this; } /** * The number of entries per page. */ public Builder pageSize(Integer pageSize) { this.pageSize = pageSize; return this; } /** * The total number of entries returned. */ public Builder totalCount(Integer totalCount) { this.totalCount = totalCount; return this; } public Page build() { return new Page(this); } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy