com.aliyun.sdk.service.cs20151215.models.InstallClusterAddonsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-cs20151215 Show documentation
Show all versions of alibabacloud-cs20151215 Show documentation
Alibaba Cloud CS (20151215) Async SDK for Java
// 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 InstallClusterAddonsRequest} extends {@link RequestModel}
*
* InstallClusterAddonsRequest
*/
public class InstallClusterAddonsRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("ClusterId")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("body")
private java.util.List < InstallClusterAddonsRequestBody> body;
private InstallClusterAddonsRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static InstallClusterAddonsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return body
*/
public java.util.List < InstallClusterAddonsRequestBody> getBody() {
return this.body;
}
public static final class Builder extends Request.Builder {
private String clusterId;
private java.util.List < InstallClusterAddonsRequestBody> body;
private Builder() {
super();
}
private Builder(InstallClusterAddonsRequest request) {
super(request);
this.clusterId = request.clusterId;
this.body = request.body;
}
/**
* The cluster ID.
*/
public Builder clusterId(String clusterId) {
this.putPathParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* The request body.
*/
public Builder body(java.util.List < InstallClusterAddonsRequestBody> body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
@Override
public InstallClusterAddonsRequest build() {
return new InstallClusterAddonsRequest(this);
}
}
public static class InstallClusterAddonsRequestBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("config")
private String config;
@com.aliyun.core.annotation.NameInMap("name")
@com.aliyun.core.annotation.Validation(required = true)
private String name;
@com.aliyun.core.annotation.NameInMap("version")
@com.aliyun.core.annotation.Validation(required = true)
private String version;
private InstallClusterAddonsRequestBody(Builder builder) {
this.config = builder.config;
this.name = builder.name;
this.version = builder.version;
}
public static Builder builder() {
return new Builder();
}
public static InstallClusterAddonsRequestBody create() {
return builder().build();
}
/**
* @return config
*/
public String getConfig() {
return this.config;
}
/**
* @return name
*/
public String getName() {
return this.name;
}
/**
* @return version
*/
public String getVersion() {
return this.version;
}
public static final class Builder {
private String config;
private String name;
private String version;
/**
* The custom component settings that you want to use. The value is a JSON string.
*/
public Builder config(String config) {
this.config = config;
return this;
}
/**
* The component name.
*/
public Builder name(String name) {
this.name = name;
return this;
}
/**
* The component version.
*
*
* > You can call the [DescribeClusterAddonsVersion](~~197434~~) operation to query the version of a component.
*/
public Builder version(String version) {
this.version = version;
return this;
}
public InstallClusterAddonsRequestBody build() {
return new InstallClusterAddonsRequestBody(this);
}
}
}
}