com.aliyun.cs20151215.models.FixNodePoolVulsRequest 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 FixNodePoolVulsRequest extends TeaModel {
/**
* Specifies whether to allow the nodes to restart.
*
* example:
* true
*/
@NameInMap("auto_restart")
public Boolean autoRestart;
/**
* The names of the nodes to be patched.
*/
@NameInMap("nodes")
public java.util.List nodes;
/**
* The batch patching policy.
*/
@NameInMap("rollout_policy")
public FixNodePoolVulsRequestRolloutPolicy rolloutPolicy;
/**
* The list of vulnerabilities.
*/
@NameInMap("vuls")
public java.util.List vuls;
public static FixNodePoolVulsRequest build(java.util.Map map) throws Exception {
FixNodePoolVulsRequest self = new FixNodePoolVulsRequest();
return TeaModel.build(map, self);
}
public FixNodePoolVulsRequest setAutoRestart(Boolean autoRestart) {
this.autoRestart = autoRestart;
return this;
}
public Boolean getAutoRestart() {
return this.autoRestart;
}
public FixNodePoolVulsRequest setNodes(java.util.List nodes) {
this.nodes = nodes;
return this;
}
public java.util.List getNodes() {
return this.nodes;
}
public FixNodePoolVulsRequest setRolloutPolicy(FixNodePoolVulsRequestRolloutPolicy rolloutPolicy) {
this.rolloutPolicy = rolloutPolicy;
return this;
}
public FixNodePoolVulsRequestRolloutPolicy getRolloutPolicy() {
return this.rolloutPolicy;
}
public FixNodePoolVulsRequest setVuls(java.util.List vuls) {
this.vuls = vuls;
return this;
}
public java.util.List getVuls() {
return this.vuls;
}
public static class FixNodePoolVulsRequestRolloutPolicy extends TeaModel {
/**
* The maximum concurrency for batch patching. Minimum value: 1. The maximum value equals the number of nodes in the node pool.
*
* example:
* 1
*/
@NameInMap("max_parallelism")
public Long maxParallelism;
public static FixNodePoolVulsRequestRolloutPolicy build(java.util.Map map) throws Exception {
FixNodePoolVulsRequestRolloutPolicy self = new FixNodePoolVulsRequestRolloutPolicy();
return TeaModel.build(map, self);
}
public FixNodePoolVulsRequestRolloutPolicy setMaxParallelism(Long maxParallelism) {
this.maxParallelism = maxParallelism;
return this;
}
public Long getMaxParallelism() {
return this.maxParallelism;
}
}
}