com.aliyun.sdk.service.cs20151215.models.UpdateClusterAuditLogConfigRequest Maven / Gradle / Ivy
Show all versions of alibabacloud-cs20151215 Show documentation
// 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 UpdateClusterAuditLogConfigRequest} extends {@link RequestModel}
*
* UpdateClusterAuditLogConfigRequest
*/
public class UpdateClusterAuditLogConfigRequest extends Request {
@com.aliyun.core.annotation.Path
@com.aliyun.core.annotation.NameInMap("clusterid")
private String clusterid;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("disable")
private Boolean disable;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("sls_project_name")
private String slsProjectName;
private UpdateClusterAuditLogConfigRequest(Builder builder) {
super(builder);
this.clusterid = builder.clusterid;
this.disable = builder.disable;
this.slsProjectName = builder.slsProjectName;
}
public static Builder builder() {
return new Builder();
}
public static UpdateClusterAuditLogConfigRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterid
*/
public String getClusterid() {
return this.clusterid;
}
/**
* @return disable
*/
public Boolean getDisable() {
return this.disable;
}
/**
* @return slsProjectName
*/
public String getSlsProjectName() {
return this.slsProjectName;
}
public static final class Builder extends Request.Builder {
private String clusterid;
private Boolean disable;
private String slsProjectName;
private Builder() {
super();
}
private Builder(UpdateClusterAuditLogConfigRequest request) {
super(request);
this.clusterid = request.clusterid;
this.disable = request.disable;
this.slsProjectName = request.slsProjectName;
}
/**
* The cluster ID.
*/
public Builder clusterid(String clusterid) {
this.putPathParameter("clusterid", clusterid);
this.clusterid = clusterid;
return this;
}
/**
* Enable or disable the audit log feature.
*
*
* * false: enables the audit log feature or updates the audit log configuration.
* * true: disables the audit log feature.
*/
public Builder disable(Boolean disable) {
this.putBodyParameter("disable", disable);
this.disable = disable;
return this;
}
/**
* The [SLS project](https://help.aliyun.com/zh/sls/product-overview/project?spm=a2c4g.11186623.0.i3) to which the [Logstore](https://help.aliyun.com/zh/sls/product-overview/logstore?spm=a2c4g.11186623.0.0.48287ce0jAUWWM) belongs.
*
*
* * Default value: k8s-log-{clusterid}.
* * After the cluster audit log feature is enabled, a Logstore is created in the specified SLS project to store the cluster audit logs.
* * If you want to change the project after the cluster audit log feature is enabled, you can use this parameter to specify another SLS project. You can perform this operation only in ACK managed clusters.
*/
public Builder slsProjectName(String slsProjectName) {
this.putBodyParameter("sls_project_name", slsProjectName);
this.slsProjectName = slsProjectName;
return this;
}
@Override
public UpdateClusterAuditLogConfigRequest build() {
return new UpdateClusterAuditLogConfigRequest(this);
}
}
}