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

com.aliyun.sdk.service.edas20170801.models.CreateK8sSecretRequest 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 CreateK8sSecretRequest} extends {@link RequestModel}
 *
 * 

CreateK8sSecretRequest

*/ public class CreateK8sSecretRequest extends Request { @Body @NameInMap("Base64Encoded") private Boolean base64Encoded; @Body @NameInMap("CertId") private String certId; @Body @NameInMap("CertRegionId") private String certRegionId; @Body @NameInMap("ClusterId") private String clusterId; @Body @NameInMap("Data") private String data; @Body @NameInMap("Name") private String name; @Body @NameInMap("Namespace") private String namespace; @Body @NameInMap("Type") private String type; private CreateK8sSecretRequest(Builder builder) { super(builder); this.base64Encoded = builder.base64Encoded; this.certId = builder.certId; this.certRegionId = builder.certRegionId; this.clusterId = builder.clusterId; this.data = builder.data; this.name = builder.name; this.namespace = builder.namespace; this.type = builder.type; } public static Builder builder() { return new Builder(); } public static CreateK8sSecretRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return base64Encoded */ public Boolean getBase64Encoded() { return this.base64Encoded; } /** * @return certId */ public String getCertId() { return this.certId; } /** * @return certRegionId */ public String getCertRegionId() { return this.certRegionId; } /** * @return clusterId */ public String getClusterId() { return this.clusterId; } /** * @return data */ public String getData() { return this.data; } /** * @return name */ public String getName() { return this.name; } /** * @return namespace */ public String getNamespace() { return this.namespace; } /** * @return type */ public String getType() { return this.type; } public static final class Builder extends Request.Builder { private Boolean base64Encoded; private String certId; private String certRegionId; private String clusterId; private String data; private String name; private String namespace; private String type; private Builder() { super(); } private Builder(CreateK8sSecretRequest request) { super(request); this.base64Encoded = request.base64Encoded; this.certId = request.certId; this.certRegionId = request.certRegionId; this.clusterId = request.clusterId; this.data = request.data; this.name = request.name; this.namespace = request.namespace; this.type = request.type; } /** * Specifies whether the data has been encoded in Base64. Valid values: true and false. */ public Builder base64Encoded(Boolean base64Encoded) { this.putBodyParameter("Base64Encoded", base64Encoded); this.base64Encoded = base64Encoded; return this; } /** * The certificate ID provided by Alibaba Cloud Certificate Management Service. */ public Builder certId(String certId) { this.putBodyParameter("CertId", certId); this.certId = certId; return this; } /** * The region in which the certificate is stored. */ public Builder certRegionId(String certRegionId) { this.putBodyParameter("CertRegionId", certRegionId); this.certRegionId = certRegionId; return this; } /** * The cluster ID. */ public Builder clusterId(String clusterId) { this.putBodyParameter("ClusterId", clusterId); this.clusterId = clusterId; return this; } /** * The data of the Secret. The value must be a JSON array that contains the following information: *

* * * Key: Secret key * * Value: Secret value */ public Builder data(String data) { this.putBodyParameter("Data", data); this.data = data; return this; } /** * The name of the Secret. The name must start with a letter, and can contain digits, letters, and hyphens (-). It can be up to 63 characters in length. */ public Builder name(String name) { this.putBodyParameter("Name", name); this.name = name; return this; } /** * The namespace of the Kubernetes cluster. */ public Builder namespace(String namespace) { this.putBodyParameter("Namespace", namespace); this.namespace = namespace; return this; } /** * The Secret type. Valid values: *

* * * Opaque: user-defined data * * kubernetes.io/tls: Transport Layer Security (TLS) certificate */ public Builder type(String type) { this.putBodyParameter("Type", type); this.type = type; return this; } @Override public CreateK8sSecretRequest build() { return new CreateK8sSecretRequest(this); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy