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

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

There is a newer version: 2.0.29
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 DescribeKubernetesVersionMetadataResponse} extends {@link TeaModel}
 *
 * 

DescribeKubernetesVersionMetadataResponse

*/ public class DescribeKubernetesVersionMetadataResponse extends Response { @com.aliyun.core.annotation.NameInMap("headers") private java.util.Map < String, String > headers; @com.aliyun.core.annotation.NameInMap("statusCode") private Integer statusCode; @com.aliyun.core.annotation.NameInMap("body") private java.util.List < DescribeKubernetesVersionMetadataResponseBody> body; private DescribeKubernetesVersionMetadataResponse(BuilderImpl builder) { super(builder); this.headers = builder.headers; this.statusCode = builder.statusCode; this.body = builder.body; } public static DescribeKubernetesVersionMetadataResponse create() { return new BuilderImpl().build(); } @Override public Builder toBuilder() { return new BuilderImpl(this); } /** * @return headers */ public java.util.Map < String, String > getHeaders() { return this.headers; } /** * @return statusCode */ public Integer getStatusCode() { return this.statusCode; } /** * @return body */ public java.util.List < DescribeKubernetesVersionMetadataResponseBody> getBody() { return this.body; } public interface Builder extends Response.Builder { Builder headers(java.util.Map < String, String > headers); Builder statusCode(Integer statusCode); Builder body(java.util.List < DescribeKubernetesVersionMetadataResponseBody> body); @Override DescribeKubernetesVersionMetadataResponse build(); } private static final class BuilderImpl extends Response.BuilderImpl implements Builder { private java.util.Map < String, String > headers; private Integer statusCode; private java.util.List < DescribeKubernetesVersionMetadataResponseBody> body; private BuilderImpl() { super(); } private BuilderImpl(DescribeKubernetesVersionMetadataResponse response) { super(response); this.headers = response.headers; this.statusCode = response.statusCode; this.body = response.body; } /** * headers. */ @Override public Builder headers(java.util.Map < String, String > headers) { this.headers = headers; return this; } /** * statusCode. */ @Override public Builder statusCode(Integer statusCode) { this.statusCode = statusCode; return this; } /** * body. */ @Override public Builder body(java.util.List < DescribeKubernetesVersionMetadataResponseBody> body) { this.body = body; return this; } @Override public DescribeKubernetesVersionMetadataResponse build() { return new DescribeKubernetesVersionMetadataResponse(this); } } public static class Images extends TeaModel { @com.aliyun.core.annotation.NameInMap("image_id") private String imageId; @com.aliyun.core.annotation.NameInMap("image_name") private String imageName; @com.aliyun.core.annotation.NameInMap("platform") private String platform; @com.aliyun.core.annotation.NameInMap("os_version") private String osVersion; @com.aliyun.core.annotation.NameInMap("image_type") private String imageType; @com.aliyun.core.annotation.NameInMap("os_type") private String osType; @com.aliyun.core.annotation.NameInMap("image_category") private String imageCategory; @com.aliyun.core.annotation.NameInMap("architecture") private String architecture; private Images(Builder builder) { this.imageId = builder.imageId; this.imageName = builder.imageName; this.platform = builder.platform; this.osVersion = builder.osVersion; this.imageType = builder.imageType; this.osType = builder.osType; this.imageCategory = builder.imageCategory; this.architecture = builder.architecture; } public static Builder builder() { return new Builder(); } public static Images create() { return builder().build(); } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return imageName */ public String getImageName() { return this.imageName; } /** * @return platform */ public String getPlatform() { return this.platform; } /** * @return osVersion */ public String getOsVersion() { return this.osVersion; } /** * @return imageType */ public String getImageType() { return this.imageType; } /** * @return osType */ public String getOsType() { return this.osType; } /** * @return imageCategory */ public String getImageCategory() { return this.imageCategory; } /** * @return architecture */ public String getArchitecture() { return this.architecture; } public static final class Builder { private String imageId; private String imageName; private String platform; private String osVersion; private String imageType; private String osType; private String imageCategory; private String architecture; /** * The image ID. */ public Builder imageId(String imageId) { this.imageId = imageId; return this; } /** * The image name. */ public Builder imageName(String imageName) { this.imageName = imageName; return this; } /** * The OS platform. Valid values: *

* * * `AliyunLinux` * * `CentOS` * * `Windows` * * `WindowsCore` */ public Builder platform(String platform) { this.platform = platform; return this; } /** * The version of the image. */ public Builder osVersion(String osVersion) { this.osVersion = osVersion; return this; } /** * The type of OS distribution that you want to use. To specify the node OS, we recommend that you use this parameter. Valid values: *

* * * `CentOS` * * `AliyunLinux` * * `AliyunLinux Qboot` * * `AliyunLinuxUEFI` * * `AliyunLinux3` * * `Windows` * * `WindowsCore` * * `AliyunLinux3Arm64` * * `ContainerOS` */ public Builder imageType(String imageType) { this.imageType = imageType; return this; } /** * The type of operating system. Examples: *

* * * `Windows` * * `Linux` */ public Builder osType(String osType) { this.osType = osType; return this; } /** * The type of image. Valid values: *

* * * `system`: public image * * `self`: custom image * * `others`: shared image from other Alibaba Cloud accounts * * `marketplace`: image from the marketplace */ public Builder imageCategory(String imageCategory) { this.imageCategory = imageCategory; return this; } /** * The architecture of the image. */ public Builder architecture(String architecture) { this.architecture = architecture; return this; } public Images build() { return new Images(this); } } } public static class DescribeKubernetesVersionMetadataResponseBody extends TeaModel { @com.aliyun.core.annotation.NameInMap("capabilities") private java.util.Map < String, ? > capabilities; @com.aliyun.core.annotation.NameInMap("images") private java.util.List < Images> images; @com.aliyun.core.annotation.NameInMap("meta_data") private java.util.Map < String, ? > metaData; @com.aliyun.core.annotation.NameInMap("runtimes") private java.util.List < Runtime > runtimes; @com.aliyun.core.annotation.NameInMap("version") private String version; @com.aliyun.core.annotation.NameInMap("release_date") private String releaseDate; @com.aliyun.core.annotation.NameInMap("expiration_date") private String expirationDate; @com.aliyun.core.annotation.NameInMap("creatable") private Boolean creatable; @com.aliyun.core.annotation.NameInMap("upgradable_versions") private java.util.List < String > upgradableVersions; private DescribeKubernetesVersionMetadataResponseBody(Builder builder) { this.capabilities = builder.capabilities; this.images = builder.images; this.metaData = builder.metaData; this.runtimes = builder.runtimes; this.version = builder.version; this.releaseDate = builder.releaseDate; this.expirationDate = builder.expirationDate; this.creatable = builder.creatable; this.upgradableVersions = builder.upgradableVersions; } public static Builder builder() { return new Builder(); } public static DescribeKubernetesVersionMetadataResponseBody create() { return builder().build(); } /** * @return capabilities */ public java.util.Map < String, ? > getCapabilities() { return this.capabilities; } /** * @return images */ public java.util.List < Images> getImages() { return this.images; } /** * @return metaData */ public java.util.Map < String, ? > getMetaData() { return this.metaData; } /** * @return runtimes */ public java.util.List < Runtime > getRuntimes() { return this.runtimes; } /** * @return version */ public String getVersion() { return this.version; } /** * @return releaseDate */ public String getReleaseDate() { return this.releaseDate; } /** * @return expirationDate */ public String getExpirationDate() { return this.expirationDate; } /** * @return creatable */ public Boolean getCreatable() { return this.creatable; } /** * @return upgradableVersions */ public java.util.List < String > getUpgradableVersions() { return this.upgradableVersions; } public static final class Builder { private java.util.Map < String, ? > capabilities; private java.util.List < Images> images; private java.util.Map < String, ? > metaData; private java.util.List < Runtime > runtimes; private String version; private String releaseDate; private String expirationDate; private Boolean creatable; private java.util.List < String > upgradableVersions; /** * Features of the queried Kubernetes version. */ public Builder capabilities(java.util.Map < String, ? > capabilities) { this.capabilities = capabilities; return this; } /** * The OS images that are returned. */ public Builder images(java.util.List < Images> images) { this.images = images; return this; } /** * The metadata of the Kubernetes version. */ public Builder metaData(java.util.Map < String, ? > metaData) { this.metaData = metaData; return this; } /** * Details of the supported container runtimes. */ public Builder runtimes(java.util.List < Runtime > runtimes) { this.runtimes = runtimes; return this; } /** * The Kubernetes version that is supported by ACK. For more information, see [Release notes for Kubernetes versions](~~185269~~). */ public Builder version(String version) { this.version = version; return this; } /** * The release date of the Kubernetes version. */ public Builder releaseDate(String releaseDate) { this.releaseDate = releaseDate; return this; } /** * The expiration date of the Kubernetes version. */ public Builder expirationDate(String expirationDate) { this.expirationDate = expirationDate; return this; } /** * Indicates whether you can create clusters that run the Kubernetes version. */ public Builder creatable(Boolean creatable) { this.creatable = creatable; return this; } /** * upgradable_versions. */ public Builder upgradableVersions(java.util.List < String > upgradableVersions) { this.upgradableVersions = upgradableVersions; return this; } public DescribeKubernetesVersionMetadataResponseBody build() { return new DescribeKubernetesVersionMetadataResponseBody(this); } } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy