com.aliyun.sdk.service.cs20151215.models.UpgradeClusterAddonsRequest 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 UpgradeClusterAddonsRequest} extends {@link RequestModel}
*
* UpgradeClusterAddonsRequest
*/
public class UpgradeClusterAddonsRequest 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 < UpgradeClusterAddonsRequestBody> body;
private UpgradeClusterAddonsRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.body = builder.body;
}
public static Builder builder() {
return new Builder();
}
public static UpgradeClusterAddonsRequest 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 < UpgradeClusterAddonsRequestBody> getBody() {
return this.body;
}
public static final class Builder extends Request.Builder {
private String clusterId;
private java.util.List < UpgradeClusterAddonsRequestBody> body;
private Builder() {
super();
}
private Builder(UpgradeClusterAddonsRequest 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 parameters.
*/
public Builder body(java.util.List < UpgradeClusterAddonsRequestBody> body) {
this.putBodyParameter("body", body);
this.body = body;
return this;
}
@Override
public UpgradeClusterAddonsRequest build() {
return new UpgradeClusterAddonsRequest(this);
}
}
public static class UpgradeClusterAddonsRequestBody extends TeaModel {
@com.aliyun.core.annotation.NameInMap("component_name")
@com.aliyun.core.annotation.Validation(required = true)
private String componentName;
@com.aliyun.core.annotation.NameInMap("config")
private String config;
@com.aliyun.core.annotation.NameInMap("next_version")
@com.aliyun.core.annotation.Validation(required = true)
private String nextVersion;
@com.aliyun.core.annotation.NameInMap("policy")
private String policy;
@com.aliyun.core.annotation.NameInMap("version")
private String version;
private UpgradeClusterAddonsRequestBody(Builder builder) {
this.componentName = builder.componentName;
this.config = builder.config;
this.nextVersion = builder.nextVersion;
this.policy = builder.policy;
this.version = builder.version;
}
public static Builder builder() {
return new Builder();
}
public static UpgradeClusterAddonsRequestBody create() {
return builder().build();
}
/**
* @return componentName
*/
public String getComponentName() {
return this.componentName;
}
/**
* @return config
*/
public String getConfig() {
return this.config;
}
/**
* @return nextVersion
*/
public String getNextVersion() {
return this.nextVersion;
}
/**
* @return policy
*/
public String getPolicy() {
return this.policy;
}
/**
* @return version
*/
public String getVersion() {
return this.version;
}
public static final class Builder {
private String componentName;
private String config;
private String nextVersion;
private String policy;
private String version;
/**
* The name of the component.
*/
public Builder componentName(String componentName) {
this.componentName = componentName;
return this;
}
/**
* 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 version to which the component can be updated. You can call the `DescribeClusterAddonsVersion` operation to query the version to which the component can be updated.
*/
public Builder nextVersion(String nextVersion) {
this.nextVersion = nextVersion;
return this;
}
/**
* The update policy. Valid values:
*
*
* * overwrite
* * canary
*/
public Builder policy(String policy) {
this.policy = policy;
return this;
}
/**
* The current version of the component.
*/
public Builder version(String version) {
this.version = version;
return this;
}
public UpgradeClusterAddonsRequestBody build() {
return new UpgradeClusterAddonsRequestBody(this);
}
}
}
}