com.aliyun.sdk.service.cloudapi20160714.models.CreateAppRequest Maven / Gradle / Ivy
// 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 CreateAppRequest} extends {@link RequestModel}
*
* CreateAppRequest
*/
public class CreateAppRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppCode")
private String appCode;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppKey")
private String appKey;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppName")
@com.aliyun.core.annotation.Validation(required = true)
private String appName;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("AppSecret")
private String appSecret;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Description")
private String description;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Extend")
private String extend;
@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 CreateAppRequest(Builder builder) {
super(builder);
this.appCode = builder.appCode;
this.appKey = builder.appKey;
this.appName = builder.appName;
this.appSecret = builder.appSecret;
this.description = builder.description;
this.extend = builder.extend;
this.securityToken = builder.securityToken;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static CreateAppRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return appCode
*/
public String getAppCode() {
return this.appCode;
}
/**
* @return appKey
*/
public String getAppKey() {
return this.appKey;
}
/**
* @return appName
*/
public String getAppName() {
return this.appName;
}
/**
* @return appSecret
*/
public String getAppSecret() {
return this.appSecret;
}
/**
* @return description
*/
public String getDescription() {
return this.description;
}
/**
* @return extend
*/
public String getExtend() {
return this.extend;
}
/**
* @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 appCode;
private String appKey;
private String appName;
private String appSecret;
private String description;
private String extend;
private String securityToken;
private java.util.List tag;
private Builder() {
super();
}
private Builder(CreateAppRequest request) {
super(request);
this.appCode = request.appCode;
this.appKey = request.appKey;
this.appName = request.appName;
this.appSecret = request.appSecret;
this.description = request.description;
this.extend = request.extend;
this.securityToken = request.securityToken;
this.tag = request.tag;
}
/**
* The AppCode of the application.
*
* example:
* 3aaf905a0a1f4f0eabc6d891dfa08afc
*/
public Builder appCode(String appCode) {
this.putQueryParameter("AppCode", appCode);
this.appCode = appCode;
return this;
}
/**
* The key of the application that is used to make an API call.
*
* example:
* 60030986
*/
public Builder appKey(String appKey) {
this.putQueryParameter("AppKey", appKey);
this.appKey = appKey;
return this;
}
/**
* The name of the application. The name must be 4 to 26 characters in length. The name can contain letters, digits, and underscores (_), and must start with a letter.
* This parameter is required.
*
* example:
* CreateAppTest
*/
public Builder appName(String appName) {
this.putQueryParameter("AppName", appName);
this.appName = appName;
return this;
}
/**
* The password of the application.
*
* example:
* nzyNqFkRWB2uLw86
*/
public Builder appSecret(String appSecret) {
this.putQueryParameter("AppSecret", appSecret);
this.appSecret = appSecret;
return this;
}
/**
* The description of the application. The description can be up to 180 characters in length.
*
* example:
* test
*/
public Builder description(String description) {
this.putQueryParameter("Description", description);
this.description = description;
return this;
}
/**
* The extended information.
*
* example:
* 110210264071
*/
public Builder extend(String extend) {
this.putQueryParameter("Extend", extend);
this.extend = extend;
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.
*
* example:
* Key, Value
*/
public Builder tag(java.util.List tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public CreateAppRequest build() {
return new CreateAppRequest(this);
}
}
/**
*
* {@link CreateAppRequest} extends {@link TeaModel}
*
* CreateAppRequest
*/
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.
* Valid values of n: [1, 20]
.
*
* example:
* env
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The value of the tag.
* Valid values of n: [1, 20]
. If the parameter has a value, you must specify a value for the tag key with the same N as tag.N.Key. Otherwise, an error is reported.
*
* example:
* " "
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}