com.aliyun.sdk.service.cs20151215.models.UpdateK8sClusterUserConfigExpireRequest 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 UpdateK8sClusterUserConfigExpireRequest} extends {@link RequestModel}
*
* UpdateK8sClusterUserConfigExpireRequest
*/
public class UpdateK8sClusterUserConfigExpireRequest 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("expire_hour")
@com.aliyun.core.annotation.Validation(required = true, maximum = 876000)
private Long expireHour;
@com.aliyun.core.annotation.Body
@com.aliyun.core.annotation.NameInMap("user")
@com.aliyun.core.annotation.Validation(required = true)
private String user;
private UpdateK8sClusterUserConfigExpireRequest(Builder builder) {
super(builder);
this.clusterId = builder.clusterId;
this.expireHour = builder.expireHour;
this.user = builder.user;
}
public static Builder builder() {
return new Builder();
}
public static UpdateK8sClusterUserConfigExpireRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return clusterId
*/
public String getClusterId() {
return this.clusterId;
}
/**
* @return expireHour
*/
public Long getExpireHour() {
return this.expireHour;
}
/**
* @return user
*/
public String getUser() {
return this.user;
}
public static final class Builder extends Request.Builder {
private String clusterId;
private Long expireHour;
private String user;
private Builder() {
super();
}
private Builder(UpdateK8sClusterUserConfigExpireRequest request) {
super(request);
this.clusterId = request.clusterId;
this.expireHour = request.expireHour;
this.user = request.user;
}
/**
* The ID of the cluster.
*/
public Builder clusterId(String clusterId) {
this.putPathParameter("ClusterId", clusterId);
this.clusterId = clusterId;
return this;
}
/**
* The validity period of the kubeconfig file. Unit: hours.
*
*
* > The value of expire_hour must be greater than 0 and equal to or smaller than 876000 (100 years).
*/
public Builder expireHour(Long expireHour) {
this.putBodyParameter("expire_hour", expireHour);
this.expireHour = expireHour;
return this;
}
/**
* The user ID.
*/
public Builder user(String user) {
this.putBodyParameter("user", user);
this.user = user;
return this;
}
@Override
public UpdateK8sClusterUserConfigExpireRequest build() {
return new UpdateK8sClusterUserConfigExpireRequest(this);
}
}
}