com.aliyun.sdk.service.cloudapi20160714.models.CreateDatasetRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alibabacloud-cloudapi20160714 Show documentation
Show all versions of alibabacloud-cloudapi20160714 Show documentation
Alibaba Cloud CloudAPI (20160714) Async SDK for Java
The newest version!
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.cloudapi20160714.models;
import com.aliyun.sdk.gateway.pop.*;
import darabonba.core.*;
import darabonba.core.async.*;
import darabonba.core.sync.*;
import darabonba.core.client.*;
import darabonba.core.RequestModel;
import darabonba.core.TeaModel;
import com.aliyun.sdk.gateway.pop.models.*;
/**
*
* {@link CreateDatasetRequest} extends {@link RequestModel}
*
* CreateDatasetRequest
*/
public class CreateDatasetRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatasetName")
@com.aliyun.core.annotation.Validation(required = true)
private String datasetName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("DatasetType")
@com.aliyun.core.annotation.Validation(required = true)
private String datasetType;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("SecurityToken")
private String securityToken;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Tag")
private java.util.List tag;
private CreateDatasetRequest(Builder builder) {
super(builder);
this.datasetName = builder.datasetName;
this.datasetType = builder.datasetType;
this.securityToken = builder.securityToken;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static CreateDatasetRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return datasetName
*/
public String getDatasetName() {
return this.datasetName;
}
/**
* @return datasetType
*/
public String getDatasetType() {
return this.datasetType;
}
/**
* @return securityToken
*/
public String getSecurityToken() {
return this.securityToken;
}
/**
* @return tag
*/
public java.util.List getTag() {
return this.tag;
}
public static final class Builder extends Request.Builder {
private String datasetName;
private String datasetType;
private String securityToken;
private java.util.List tag;
private Builder() {
super();
}
private Builder(CreateDatasetRequest request) {
super(request);
this.datasetName = request.datasetName;
this.datasetType = request.datasetType;
this.securityToken = request.securityToken;
this.tag = request.tag;
}
/**
* The name of the dataset.
* This parameter is required.
*
* example:
* DatasetName
*/
public Builder datasetName(String datasetName) {
this.putQueryParameter("DatasetName", datasetName);
this.datasetName = datasetName;
return this;
}
/**
* The type of the dataset. Valid values:
*
* - JWT_BLOCKING: a JSON Web Token (JWT) blacklist
* - IP_WHITELIST_CIDR : an IP address whitelist
* - PARAMETER_ACCESS : parameter-based access control
*
* This parameter is required.
*
* example:
* JWT_BLOCKING
*/
public Builder datasetType(String datasetType) {
this.putQueryParameter("DatasetType", datasetType);
this.datasetType = datasetType;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* The tag of objects that match the rule. You can specify multiple tags.
*/
public Builder tag(java.util.List tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public CreateDatasetRequest build() {
return new CreateDatasetRequest(this);
}
}
/**
*
* {@link CreateDatasetRequest} extends {@link TeaModel}
*
* CreateDatasetRequest
*/
public static class Tag extends TeaModel {
@com.aliyun.core.annotation.NameInMap("Key")
private String key;
@com.aliyun.core.annotation.NameInMap("Value")
private String value;
private Tag(Builder builder) {
this.key = builder.key;
this.value = builder.value;
}
public static Builder builder() {
return new Builder();
}
public static Tag create() {
return builder().build();
}
/**
* @return key
*/
public String getKey() {
return this.key;
}
/**
* @return value
*/
public String getValue() {
return this.value;
}
public static final class Builder {
private String key;
private String value;
/**
* The key of the tag.
*
* example:
* env
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The value of the tag.
*
* example:
* 123
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy