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

com.aliyun.sdk.service.edas20170801.models.GetClusterResponseBody Maven / Gradle / Ivy

The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.edas20170801.models;

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

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

GetClusterResponseBody

*/ public class GetClusterResponseBody extends TeaModel { @NameInMap("Cluster") private Cluster cluster; @NameInMap("Code") private Integer code; @NameInMap("Message") private String message; @NameInMap("RequestId") private String requestId; private GetClusterResponseBody(Builder builder) { this.cluster = builder.cluster; this.code = builder.code; this.message = builder.message; this.requestId = builder.requestId; } public static Builder builder() { return new Builder(); } public static GetClusterResponseBody create() { return builder().build(); } /** * @return cluster */ public Cluster getCluster() { return this.cluster; } /** * @return code */ public Integer getCode() { return this.code; } /** * @return message */ public String getMessage() { return this.message; } /** * @return requestId */ public String getRequestId() { return this.requestId; } public static final class Builder { private Cluster cluster; private Integer code; private String message; private String requestId; /** * The information about the cluster. */ public Builder cluster(Cluster cluster) { this.cluster = cluster; return this; } /** * The HTTP status code that is returned. */ public Builder code(Integer code) { this.code = code; return this; } /** * The detailed information that is returned. */ public Builder message(String message) { this.message = message; return this; } /** * The ID of the request. */ public Builder requestId(String requestId) { this.requestId = requestId; return this; } public GetClusterResponseBody build() { return new GetClusterResponseBody(this); } } public static class Cluster extends TeaModel { @NameInMap("ClusterId") private String clusterId; @NameInMap("ClusterImportStatus") private Integer clusterImportStatus; @NameInMap("ClusterName") private String clusterName; @NameInMap("ClusterType") private Integer clusterType; @NameInMap("Cpu") private Integer cpu; @NameInMap("CpuUsed") private Integer cpuUsed; @NameInMap("CreateTime") private Long createTime; @NameInMap("CsClusterId") private String csClusterId; @NameInMap("Description") private String description; @NameInMap("IaasProvider") private String iaasProvider; @NameInMap("Mem") private Integer mem; @NameInMap("MemUsed") private Integer memUsed; @NameInMap("NetworkMode") private Integer networkMode; @NameInMap("NodeNum") private Integer nodeNum; @NameInMap("OversoldFactor") private Integer oversoldFactor; @NameInMap("RegionId") private String regionId; @NameInMap("SubClusterType") private String subClusterType; @NameInMap("UpdateTime") private Long updateTime; @NameInMap("VpcId") private String vpcId; private Cluster(Builder builder) { this.clusterId = builder.clusterId; this.clusterImportStatus = builder.clusterImportStatus; this.clusterName = builder.clusterName; this.clusterType = builder.clusterType; this.cpu = builder.cpu; this.cpuUsed = builder.cpuUsed; this.createTime = builder.createTime; this.csClusterId = builder.csClusterId; this.description = builder.description; this.iaasProvider = builder.iaasProvider; this.mem = builder.mem; this.memUsed = builder.memUsed; this.networkMode = builder.networkMode; this.nodeNum = builder.nodeNum; this.oversoldFactor = builder.oversoldFactor; this.regionId = builder.regionId; this.subClusterType = builder.subClusterType; this.updateTime = builder.updateTime; this.vpcId = builder.vpcId; } public static Builder builder() { return new Builder(); } public static Cluster create() { return builder().build(); } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return clusterImportStatus */ public Integer getClusterImportStatus() { return this.clusterImportStatus; } /** * @return clusterName */ public String getClusterName() { return this.clusterName; } /** * @return clusterType */ public Integer getClusterType() { return this.clusterType; } /** * @return cpu */ public Integer getCpu() { return this.cpu; } /** * @return cpuUsed */ public Integer getCpuUsed() { return this.cpuUsed; } /** * @return createTime */ public Long getCreateTime() { return this.createTime; } /** * @return csClusterId */ public String getCsClusterId() { return this.csClusterId; } /** * @return description */ public String getDescription() { return this.description; } /** * @return iaasProvider */ public String getIaasProvider() { return this.iaasProvider; } /** * @return mem */ public Integer getMem() { return this.mem; } /** * @return memUsed */ public Integer getMemUsed() { return this.memUsed; } /** * @return networkMode */ public Integer getNetworkMode() { return this.networkMode; } /** * @return nodeNum */ public Integer getNodeNum() { return this.nodeNum; } /** * @return oversoldFactor */ public Integer getOversoldFactor() { return this.oversoldFactor; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return subClusterType */ public String getSubClusterType() { return this.subClusterType; } /** * @return updateTime */ public Long getUpdateTime() { return this.updateTime; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } public static final class Builder { private String clusterId; private Integer clusterImportStatus; private String clusterName; private Integer clusterType; private Integer cpu; private Integer cpuUsed; private Long createTime; private String csClusterId; private String description; private String iaasProvider; private Integer mem; private Integer memUsed; private Integer networkMode; private Integer nodeNum; private Integer oversoldFactor; private String regionId; private String subClusterType; private Long updateTime; private String vpcId; /** * The ID of the cluster. */ public Builder clusterId(String clusterId) { this.clusterId = clusterId; return this; } /** * The import status of the cluster. Valid values: *

* * * 1: The cluster is imported. * * 2: The cluster fails to be imported. * * 3: The cluster is being imported. * * 4: The cluster is deleted. * * 0: The cluster is not imported. */ public Builder clusterImportStatus(Integer clusterImportStatus) { this.clusterImportStatus = clusterImportStatus; return this; } /** * The name of the cluster. */ public Builder clusterName(String clusterName) { this.clusterName = clusterName; return this; } /** * The type of the cluster. Valid values: *

* * * 0: regular Docker cluster * * 1: Swarm cluster * * 2: Elastic Compute Service (ECS) cluster * * 3: self-managed Kubernetes cluster in EDAS * * 4: cluster in which Pandora automatically registers applications * * 5: ACK cluster */ public Builder clusterType(Integer clusterType) { this.clusterType = clusterType; return this; } /** * The total number of CPU cores. */ public Builder cpu(Integer cpu) { this.cpu = cpu; return this; } /** * The number of used CPU cores. */ public Builder cpuUsed(Integer cpuUsed) { this.cpuUsed = cpuUsed; return this; } /** * The time when the cluster was created. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. */ public Builder createTime(Long createTime) { this.createTime = createTime; return this; } /** * The ID of the Container Service for Kubernetes (ACK) cluster. */ public Builder csClusterId(String csClusterId) { this.csClusterId = csClusterId; return this; } /** * The description of the cluster. */ public Builder description(String description) { this.description = description; return this; } /** * The provider of Infrastructure as a Service (IaaS) resources used in the cluster. */ public Builder iaasProvider(String iaasProvider) { this.iaasProvider = iaasProvider; return this; } /** * The total size of memory. Unit: MB. */ public Builder mem(Integer mem) { this.mem = mem; return this; } /** * The size of used memory. Unit: MB. */ public Builder memUsed(Integer memUsed) { this.memUsed = memUsed; return this; } /** * The network type of the cluster. Valid values: *

* * * 1: classic network * * 2: virtual private cloud (VPC) */ public Builder networkMode(Integer networkMode) { this.networkMode = networkMode; return this; } /** * The number of ECS instances. */ public Builder nodeNum(Integer nodeNum) { this.nodeNum = nodeNum; return this; } /** * The overcommit ratio supported by a Docker cluster. Valid values: *

* * * 1: 1:1, which means that resources are not overcommitted. * * 2: 1:2, which means that resources are overcommitted by 1:2. * * 4: 1:4, which means that resources are overcommitted by 1:4. * * 8: 1:8, which means that resources are overcommitted by 1:8. */ public Builder oversoldFactor(Integer oversoldFactor) { this.oversoldFactor = oversoldFactor; return this; } /** * The ID of the region where the cluster resides. */ public Builder regionId(String regionId) { this.regionId = regionId; return this; } /** * The subtype of the Kubernetes cluster. Valid values: ManagedKubernetes, Ask, and ExternalKubernetes. ManagedKubernetes refers to the ACK cluster. Ask refers to the Serverless Kubernetes (ASK) cluster. ExternalKubernetes refers to the external cluster. */ public Builder subClusterType(String subClusterType) { this.subClusterType = subClusterType; return this; } /** * The time when the cluster was last modified. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC. */ public Builder updateTime(Long updateTime) { this.updateTime = updateTime; return this; } /** * The ID of the virtual private cloud (VPC). */ public Builder vpcId(String vpcId) { this.vpcId = vpcId; return this; } public Cluster build() { return new Cluster(this); } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy