com.aliyun.sdk.service.cloudapi20160714.models.DescribeInstancesRequest 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 DescribeInstancesRequest} extends {@link RequestModel}
*
* DescribeInstancesRequest
*/
public class DescribeInstancesRequest extends Request {
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("EnableTagAuthorization")
private Boolean enableTagAuthorization;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("InstanceId")
private String instanceId;
@com.aliyun.core.annotation.Query
@com.aliyun.core.annotation.NameInMap("Language")
private String language;
@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 DescribeInstancesRequest(Builder builder) {
super(builder);
this.enableTagAuthorization = builder.enableTagAuthorization;
this.instanceId = builder.instanceId;
this.language = builder.language;
this.securityToken = builder.securityToken;
this.tag = builder.tag;
}
public static Builder builder() {
return new Builder();
}
public static DescribeInstancesRequest create() {
return builder().build();
}
@Override
public Builder toBuilder() {
return new Builder(this);
}
/**
* @return enableTagAuthorization
*/
public Boolean getEnableTagAuthorization() {
return this.enableTagAuthorization;
}
/**
* @return instanceId
*/
public String getInstanceId() {
return this.instanceId;
}
/**
* @return language
*/
public String getLanguage() {
return this.language;
}
/**
* @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 Boolean enableTagAuthorization;
private String instanceId;
private String language;
private String securityToken;
private java.util.List tag;
private Builder() {
super();
}
private Builder(DescribeInstancesRequest request) {
super(request);
this.enableTagAuthorization = request.enableTagAuthorization;
this.instanceId = request.instanceId;
this.language = request.language;
this.securityToken = request.securityToken;
this.tag = request.tag;
}
/**
* Specifies whether tag authorization is enabled.
*
* example:
* false
*/
public Builder enableTagAuthorization(Boolean enableTagAuthorization) {
this.putQueryParameter("EnableTagAuthorization", enableTagAuthorization);
this.enableTagAuthorization = enableTagAuthorization;
return this;
}
/**
* The instance ID. If you do not specify this parameter, all instances are returned.
*
* example:
* api-shared-vpc-001
*/
public Builder instanceId(String instanceId) {
this.putQueryParameter("InstanceId", instanceId);
this.instanceId = instanceId;
return this;
}
/**
* The language in which you want the description of the system policy to be returned. Valid values:
*
* - en: English
* - zh: Chinese
* - ja: Japanese
*
*
* example:
* zh
*/
public Builder language(String language) {
this.putQueryParameter("Language", language);
this.language = language;
return this;
}
/**
* SecurityToken.
*/
public Builder securityToken(String securityToken) {
this.putQueryParameter("SecurityToken", securityToken);
this.securityToken = securityToken;
return this;
}
/**
* The tag that is bound to the instance.
*/
public Builder tag(java.util.List tag) {
this.putQueryParameter("Tag", tag);
this.tag = tag;
return this;
}
@Override
public DescribeInstancesRequest build() {
return new DescribeInstancesRequest(this);
}
}
/**
*
* {@link DescribeInstancesRequest} extends {@link TeaModel}
*
* DescribeInstancesRequest
*/
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 tag key.
*
* example:
* key1
*/
public Builder key(String key) {
this.key = key;
return this;
}
/**
* The tag value.
*
* example:
* value
*/
public Builder value(String value) {
this.value = value;
return this;
}
public Tag build() {
return new Tag(this);
}
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy