com.aliyun.sdk.service.cs20151215.models.DescribeNodePoolVulsRequest 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 DescribeNodePoolVulsRequest} extends {@link RequestModel}
*
* DescribeNodePoolVulsRequest
*/
public class DescribeNodePoolVulsRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("cluster_id")
@com.aliyun.core.annotation.Validation(required = true)
private String clusterId;
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("nodepool_id")
@com.aliyun.core.annotation.Validation(required = true)
private String nodepoolId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("necessity")
private String necessity;
private DescribeNodePoolVulsRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.nodepoolId = builder.nodepoolId;
this.necessity = builder.necessity;
}
public static Builder builder() {
return new Builder();
}
public static DescribeNodePoolVulsRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return nodepoolId
*/
public String getNodepoolId() {
return this.nodepoolId;
}
/**
* @return necessity
*/
public String getNecessity() {
return this.necessity;
}
public static final class Builder extends Request.Builder {
private String clusterId;
private String nodepoolId;
private String necessity;
private Builder() {
super();
}
private Builder(DescribeNodePoolVulsRequest request) {
super(request);
this.clusterId = request.clusterId;
this.nodepoolId = request.nodepoolId;
this.necessity = request.necessity;
}
/**
* cluster_id.
*/
public Builder clusterId(String clusterId) {
this.putPathParameter("cluster_id", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* nodepool_id.
*/
public Builder nodepoolId(String nodepoolId) {
this.putPathParameter("nodepool_id", nodepoolId);
this.nodepoolId = nodepoolId;
return this;
}
/**
* The priority to fix the vulnerability. Separate multiple priorities with commas (,). Valid values:
*
*
* * `asap`: high
* * `later`: medium
* * `nntf`: low
*/
public Builder necessity(String necessity) {
this.putQueryParameter("necessity", necessity);
this.necessity = necessity;
return this;
}
@Override
public DescribeNodePoolVulsRequest build() {
return new DescribeNodePoolVulsRequest(this);
}
}
}