com.aliyun.cs20151215.models.UpgradeClusterAddonsRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cs20151215 Show documentation
Show all versions of cs20151215 Show documentation
Alibaba Cloud CS (20151215) SDK for Java
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.cs20151215.models;
import com.aliyun.tea.*;
public class UpgradeClusterAddonsRequest extends TeaModel {
/**
* The request parameters.
*/
@NameInMap("body")
public java.util.List body;
public static UpgradeClusterAddonsRequest build(java.util.Map map) throws Exception {
UpgradeClusterAddonsRequest self = new UpgradeClusterAddonsRequest();
return TeaModel.build(map, self);
}
public UpgradeClusterAddonsRequest setBody(java.util.List body) {
this.body = body;
return this;
}
public java.util.List getBody() {
return this.body;
}
public static class UpgradeClusterAddonsRequestBody extends TeaModel {
/**
* The name of the component.
* This parameter is required.
*
* example:
* coredns
*/
@NameInMap("component_name")
public String componentName;
/**
* The custom component settings that you want to use. The value is a JSON string.
*
* example:
* {\"CpuRequest\":\"800m\"}
*/
@NameInMap("config")
public String config;
/**
* 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.
* This parameter is required.
*
* example:
* 1.6.7
*/
@NameInMap("next_version")
public String nextVersion;
/**
* The update policy. Valid values:
*
* - overwrite
* - canary
*
*
* example:
* canary
*/
@NameInMap("policy")
public String policy;
/**
* The current version of the component.
*
* example:
* v1.6.2
*/
@NameInMap("version")
public String version;
public static UpgradeClusterAddonsRequestBody build(java.util.Map map) throws Exception {
UpgradeClusterAddonsRequestBody self = new UpgradeClusterAddonsRequestBody();
return TeaModel.build(map, self);
}
public UpgradeClusterAddonsRequestBody setComponentName(String componentName) {
this.componentName = componentName;
return this;
}
public String getComponentName() {
return this.componentName;
}
public UpgradeClusterAddonsRequestBody setConfig(String config) {
this.config = config;
return this;
}
public String getConfig() {
return this.config;
}
public UpgradeClusterAddonsRequestBody setNextVersion(String nextVersion) {
this.nextVersion = nextVersion;
return this;
}
public String getNextVersion() {
return this.nextVersion;
}
public UpgradeClusterAddonsRequestBody setPolicy(String policy) {
this.policy = policy;
return this;
}
public String getPolicy() {
return this.policy;
}
public UpgradeClusterAddonsRequestBody setVersion(String version) {
this.version = version;
return this;
}
public String getVersion() {
return this.version;
}
}
}