All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.sdk.service.ecs20140526.models.DescribeInstancesRequest Maven / Gradle / Ivy

// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.sdk.service.ecs20140526.models;

import com.aliyun.core.annotation.*;
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 { @Query @NameInMap("Filter") private java.util.List < Filter> filter; @Host @NameInMap("SourceRegionId") private String sourceRegionId; @Query @NameInMap("AdditionalAttributes") private java.util.List < String > additionalAttributes; @Query @NameInMap("DeviceAvailable") private Boolean deviceAvailable; @Query @NameInMap("DryRun") private Boolean dryRun; @Query @NameInMap("EipAddresses") private String eipAddresses; @Query @NameInMap("HpcClusterId") private String hpcClusterId; @Query @NameInMap("HttpEndpoint") private String httpEndpoint; @Query @NameInMap("HttpPutResponseHopLimit") private Integer httpPutResponseHopLimit; @Query @NameInMap("HttpTokens") private String httpTokens; @Query @NameInMap("ImageId") private String imageId; @Query @NameInMap("InnerIpAddresses") private String innerIpAddresses; @Query @NameInMap("InstanceChargeType") private String instanceChargeType; @Query @NameInMap("InstanceIds") private String instanceIds; @Query @NameInMap("InstanceName") private String instanceName; @Query @NameInMap("InstanceNetworkType") private String instanceNetworkType; @Query @NameInMap("InstanceType") private String instanceType; @Query @NameInMap("InstanceTypeFamily") private String instanceTypeFamily; @Query @NameInMap("InternetChargeType") private String internetChargeType; @Query @NameInMap("IoOptimized") private Boolean ioOptimized; @Query @NameInMap("Ipv6Address") private java.util.List < String > ipv6Address; @Query @NameInMap("KeyPairName") private String keyPairName; @Query @NameInMap("LockReason") private String lockReason; @Query @NameInMap("MaxResults") @Validation(maximum = 100, minimum = 1) private Integer maxResults; @Query @NameInMap("NeedSaleCycle") private Boolean needSaleCycle; @Query @NameInMap("NextToken") private String nextToken; @Query @NameInMap("OwnerAccount") private String ownerAccount; @Query @NameInMap("OwnerId") private Long ownerId; @Query @NameInMap("PageNumber") private Integer pageNumber; @Query @NameInMap("PageSize") @Validation(maximum = 100, minimum = 1) private Integer pageSize; @Query @NameInMap("PrivateIpAddresses") private String privateIpAddresses; @Query @NameInMap("PublicIpAddresses") private String publicIpAddresses; @Query @NameInMap("RdmaIpAddresses") private String rdmaIpAddresses; @Query @NameInMap("RegionId") @Validation(required = true) private String regionId; @Query @NameInMap("ResourceGroupId") private String resourceGroupId; @Query @NameInMap("ResourceOwnerAccount") private String resourceOwnerAccount; @Query @NameInMap("ResourceOwnerId") private Long resourceOwnerId; @Query @NameInMap("SecurityGroupId") private String securityGroupId; @Query @NameInMap("Status") private String status; @Query @NameInMap("Tag") private java.util.List < Tag> tag; @Query @NameInMap("VSwitchId") private String vSwitchId; @Query @NameInMap("VpcId") private String vpcId; @Query @NameInMap("ZoneId") private String zoneId; private DescribeInstancesRequest(Builder builder) { super(builder); this.filter = builder.filter; this.sourceRegionId = builder.sourceRegionId; this.additionalAttributes = builder.additionalAttributes; this.deviceAvailable = builder.deviceAvailable; this.dryRun = builder.dryRun; this.eipAddresses = builder.eipAddresses; this.hpcClusterId = builder.hpcClusterId; this.httpEndpoint = builder.httpEndpoint; this.httpPutResponseHopLimit = builder.httpPutResponseHopLimit; this.httpTokens = builder.httpTokens; this.imageId = builder.imageId; this.innerIpAddresses = builder.innerIpAddresses; this.instanceChargeType = builder.instanceChargeType; this.instanceIds = builder.instanceIds; this.instanceName = builder.instanceName; this.instanceNetworkType = builder.instanceNetworkType; this.instanceType = builder.instanceType; this.instanceTypeFamily = builder.instanceTypeFamily; this.internetChargeType = builder.internetChargeType; this.ioOptimized = builder.ioOptimized; this.ipv6Address = builder.ipv6Address; this.keyPairName = builder.keyPairName; this.lockReason = builder.lockReason; this.maxResults = builder.maxResults; this.needSaleCycle = builder.needSaleCycle; this.nextToken = builder.nextToken; this.ownerAccount = builder.ownerAccount; this.ownerId = builder.ownerId; this.pageNumber = builder.pageNumber; this.pageSize = builder.pageSize; this.privateIpAddresses = builder.privateIpAddresses; this.publicIpAddresses = builder.publicIpAddresses; this.rdmaIpAddresses = builder.rdmaIpAddresses; this.regionId = builder.regionId; this.resourceGroupId = builder.resourceGroupId; this.resourceOwnerAccount = builder.resourceOwnerAccount; this.resourceOwnerId = builder.resourceOwnerId; this.securityGroupId = builder.securityGroupId; this.status = builder.status; this.tag = builder.tag; this.vSwitchId = builder.vSwitchId; this.vpcId = builder.vpcId; this.zoneId = builder.zoneId; } public static Builder builder() { return new Builder(); } public static DescribeInstancesRequest create() { return builder().build(); } @Override public Builder toBuilder() { return new Builder(this); } /** * @return filter */ public java.util.List < Filter> getFilter() { return this.filter; } /** * @return sourceRegionId */ public String getSourceRegionId() { return this.sourceRegionId; } /** * @return additionalAttributes */ public java.util.List < String > getAdditionalAttributes() { return this.additionalAttributes; } /** * @return deviceAvailable */ public Boolean getDeviceAvailable() { return this.deviceAvailable; } /** * @return dryRun */ public Boolean getDryRun() { return this.dryRun; } /** * @return eipAddresses */ public String getEipAddresses() { return this.eipAddresses; } /** * @return hpcClusterId */ public String getHpcClusterId() { return this.hpcClusterId; } /** * @return httpEndpoint */ public String getHttpEndpoint() { return this.httpEndpoint; } /** * @return httpPutResponseHopLimit */ public Integer getHttpPutResponseHopLimit() { return this.httpPutResponseHopLimit; } /** * @return httpTokens */ public String getHttpTokens() { return this.httpTokens; } /** * @return imageId */ public String getImageId() { return this.imageId; } /** * @return innerIpAddresses */ public String getInnerIpAddresses() { return this.innerIpAddresses; } /** * @return instanceChargeType */ public String getInstanceChargeType() { return this.instanceChargeType; } /** * @return instanceIds */ public String getInstanceIds() { return this.instanceIds; } /** * @return instanceName */ public String getInstanceName() { return this.instanceName; } /** * @return instanceNetworkType */ public String getInstanceNetworkType() { return this.instanceNetworkType; } /** * @return instanceType */ public String getInstanceType() { return this.instanceType; } /** * @return instanceTypeFamily */ public String getInstanceTypeFamily() { return this.instanceTypeFamily; } /** * @return internetChargeType */ public String getInternetChargeType() { return this.internetChargeType; } /** * @return ioOptimized */ public Boolean getIoOptimized() { return this.ioOptimized; } /** * @return ipv6Address */ public java.util.List < String > getIpv6Address() { return this.ipv6Address; } /** * @return keyPairName */ public String getKeyPairName() { return this.keyPairName; } /** * @return lockReason */ public String getLockReason() { return this.lockReason; } /** * @return maxResults */ public Integer getMaxResults() { return this.maxResults; } /** * @return needSaleCycle */ public Boolean getNeedSaleCycle() { return this.needSaleCycle; } /** * @return nextToken */ public String getNextToken() { return this.nextToken; } /** * @return ownerAccount */ public String getOwnerAccount() { return this.ownerAccount; } /** * @return ownerId */ public Long getOwnerId() { return this.ownerId; } /** * @return pageNumber */ public Integer getPageNumber() { return this.pageNumber; } /** * @return pageSize */ public Integer getPageSize() { return this.pageSize; } /** * @return privateIpAddresses */ public String getPrivateIpAddresses() { return this.privateIpAddresses; } /** * @return publicIpAddresses */ public String getPublicIpAddresses() { return this.publicIpAddresses; } /** * @return rdmaIpAddresses */ public String getRdmaIpAddresses() { return this.rdmaIpAddresses; } /** * @return regionId */ public String getRegionId() { return this.regionId; } /** * @return resourceGroupId */ public String getResourceGroupId() { return this.resourceGroupId; } /** * @return resourceOwnerAccount */ public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } /** * @return resourceOwnerId */ public Long getResourceOwnerId() { return this.resourceOwnerId; } /** * @return securityGroupId */ public String getSecurityGroupId() { return this.securityGroupId; } /** * @return status */ public String getStatus() { return this.status; } /** * @return tag */ public java.util.List < Tag> getTag() { return this.tag; } /** * @return vSwitchId */ public String getVSwitchId() { return this.vSwitchId; } /** * @return vpcId */ public String getVpcId() { return this.vpcId; } /** * @return zoneId */ public String getZoneId() { return this.zoneId; } public static final class Builder extends Request.Builder { private java.util.List < Filter> filter; private String sourceRegionId; private java.util.List < String > additionalAttributes; private Boolean deviceAvailable; private Boolean dryRun; private String eipAddresses; private String hpcClusterId; private String httpEndpoint; private Integer httpPutResponseHopLimit; private String httpTokens; private String imageId; private String innerIpAddresses; private String instanceChargeType; private String instanceIds; private String instanceName; private String instanceNetworkType; private String instanceType; private String instanceTypeFamily; private String internetChargeType; private Boolean ioOptimized; private java.util.List < String > ipv6Address; private String keyPairName; private String lockReason; private Integer maxResults; private Boolean needSaleCycle; private String nextToken; private String ownerAccount; private Long ownerId; private Integer pageNumber; private Integer pageSize; private String privateIpAddresses; private String publicIpAddresses; private String rdmaIpAddresses; private String regionId; private String resourceGroupId; private String resourceOwnerAccount; private Long resourceOwnerId; private String securityGroupId; private String status; private java.util.List < Tag> tag; private String vSwitchId; private String vpcId; private String zoneId; private Builder() { super(); } private Builder(DescribeInstancesRequest request) { super(request); this.filter = request.filter; this.sourceRegionId = request.sourceRegionId; this.additionalAttributes = request.additionalAttributes; this.deviceAvailable = request.deviceAvailable; this.dryRun = request.dryRun; this.eipAddresses = request.eipAddresses; this.hpcClusterId = request.hpcClusterId; this.httpEndpoint = request.httpEndpoint; this.httpPutResponseHopLimit = request.httpPutResponseHopLimit; this.httpTokens = request.httpTokens; this.imageId = request.imageId; this.innerIpAddresses = request.innerIpAddresses; this.instanceChargeType = request.instanceChargeType; this.instanceIds = request.instanceIds; this.instanceName = request.instanceName; this.instanceNetworkType = request.instanceNetworkType; this.instanceType = request.instanceType; this.instanceTypeFamily = request.instanceTypeFamily; this.internetChargeType = request.internetChargeType; this.ioOptimized = request.ioOptimized; this.ipv6Address = request.ipv6Address; this.keyPairName = request.keyPairName; this.lockReason = request.lockReason; this.maxResults = request.maxResults; this.needSaleCycle = request.needSaleCycle; this.nextToken = request.nextToken; this.ownerAccount = request.ownerAccount; this.ownerId = request.ownerId; this.pageNumber = request.pageNumber; this.pageSize = request.pageSize; this.privateIpAddresses = request.privateIpAddresses; this.publicIpAddresses = request.publicIpAddresses; this.rdmaIpAddresses = request.rdmaIpAddresses; this.regionId = request.regionId; this.resourceGroupId = request.resourceGroupId; this.resourceOwnerAccount = request.resourceOwnerAccount; this.resourceOwnerId = request.resourceOwnerId; this.securityGroupId = request.securityGroupId; this.status = request.status; this.tag = request.tag; this.vSwitchId = request.vSwitchId; this.vpcId = request.vpcId; this.zoneId = request.zoneId; } /** * Filter. */ public Builder filter(java.util.List < Filter> filter) { this.putQueryParameter("Filter", filter); this.filter = filter; return this; } /** * SourceRegionId. */ public Builder sourceRegionId(String sourceRegionId) { this.putHostParameter("SourceRegionId", sourceRegionId); this.sourceRegionId = sourceRegionId; return this; } /** * The value of attribute N. Valid values of N: 1 to 20. */ public Builder additionalAttributes(java.util.List < String > additionalAttributes) { this.putQueryParameter("AdditionalAttributes", additionalAttributes); this.additionalAttributes = additionalAttributes; return this; } /** * > This parameter is currently in invitational preview and unavailable for general users. */ public Builder deviceAvailable(Boolean deviceAvailable) { this.putQueryParameter("DeviceAvailable", deviceAvailable); this.deviceAvailable = deviceAvailable; return this; } /** * Specifies whether to check the validity of the request without actually making the request. Default value: false. Valid values: *

* * * true: The validity of the request is checked but the request is not made. Check items include whether your AccessKey pair is valid, whether RAM users are granted required permissions, and whether the required parameters are specified. If the check fails, the corresponding error is returned. If the check succeeds, the DryRunOperation error code is returned. * * false: The validity of the request is checked. If the check succeeds, a 2XX HTTP status code is returned and the request is made. */ public Builder dryRun(Boolean dryRun) { this.putQueryParameter("DryRun", dryRun); this.dryRun = dryRun; return this; } /** * The elastic IP addresses (EIPs) of instances. This parameter is valid when InstanceNetworkType is set to vpc. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,). */ public Builder eipAddresses(String eipAddresses) { this.putQueryParameter("EipAddresses", eipAddresses); this.eipAddresses = eipAddresses; return this; } /** * The ID of the High Performance Computing (HPC) cluster to which the instance belongs. */ public Builder hpcClusterId(String hpcClusterId) { this.putQueryParameter("HpcClusterId", hpcClusterId); this.hpcClusterId = hpcClusterId; return this; } /** * Specifies whether the access channel is enabled for instance metadata. Valid values: *

* * * enabled * * disabled * * Default value: enabled. * * > For more information about instance metadata, see [Overview of ECS instance metadata](~~49122~~). */ public Builder httpEndpoint(String httpEndpoint) { this.putQueryParameter("HttpEndpoint", httpEndpoint); this.httpEndpoint = httpEndpoint; return this; } /** * > This parameter is currently in invitational preview and unavailable for general users. */ public Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit) { this.putQueryParameter("HttpPutResponseHopLimit", httpPutResponseHopLimit); this.httpPutResponseHopLimit = httpPutResponseHopLimit; return this; } /** * Specifies whether the security hardening mode (IMDSv2) is forcefully used to access instance metadata. Valid values: *

* * * optional: The security hardening mode (IMDSv2) is not forcefully used. * * required: The security hardening mode (IMDSv2) is forcefully used. After you set this parameter to required, you cannot access instance metadata in normal mode. * * Default value: optional. * * > For more information about modes of accessing instance metadata, see [Access mode of instance metadata](~~150575~~). */ public Builder httpTokens(String httpTokens) { this.putQueryParameter("HttpTokens", httpTokens); this.httpTokens = httpTokens; return this; } /** * The ID of the image. */ public Builder imageId(String imageId) { this.putQueryParameter("ImageId", imageId); this.imageId = imageId; return this; } /** * The internal IP addresses of instances located in the classic network. This parameter is valid when InstanceNetworkType is set to classic. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,). */ public Builder innerIpAddresses(String innerIpAddresses) { this.putQueryParameter("InnerIpAddresses", innerIpAddresses); this.innerIpAddresses = innerIpAddresses; return this; } /** * The billing method of the instance. Valid values: *

* * * PostPaid: pay-as-you-go * * PrePaid: subscription */ public Builder instanceChargeType(String instanceChargeType) { this.putQueryParameter("InstanceChargeType", instanceChargeType); this.instanceChargeType = instanceChargeType; return this; } /** * The IDs of instances. The value can be a JSON array that consists of up to 100 instance IDs. Separate the IDs with commas (,). */ public Builder instanceIds(String instanceIds) { this.putQueryParameter("InstanceIds", instanceIds); this.instanceIds = instanceIds; return this; } /** * The name of the instance. Fuzzy search with the asterisk (\*) wildcard characters is supported. */ public Builder instanceName(String instanceName) { this.putQueryParameter("InstanceName", instanceName); this.instanceName = instanceName; return this; } /** * The network type of the instance. Valid values: *

* * * classic: classic network * * vpc: VPC */ public Builder instanceNetworkType(String instanceNetworkType) { this.putQueryParameter("InstanceNetworkType", instanceNetworkType); this.instanceNetworkType = instanceNetworkType; return this; } /** * The instance type of the instance. */ public Builder instanceType(String instanceType) { this.putQueryParameter("InstanceType", instanceType); this.instanceType = instanceType; return this; } /** * The instance family of the instance. */ public Builder instanceTypeFamily(String instanceTypeFamily) { this.putQueryParameter("InstanceTypeFamily", instanceTypeFamily); this.instanceTypeFamily = instanceTypeFamily; return this; } /** * The billing method for network usage. Valid values: *

* * * PayByBandwidth: pay-by-bandwidth * * PayByTraffic: pay-by-traffic * * > When the **pay-by-traffic** billing method for network usage is used, the maximum inbound and outbound bandwidth values are used as upper limits of bandwidths instead of guaranteed performance specifications. In scenarios where demand outstrips resource supplies, these maximum bandwidth values may not be reached. If you want guaranteed bandwidths for your instances, use the **pay-by-bandwidth** billing method for network usage. */ public Builder internetChargeType(String internetChargeType) { this.putQueryParameter("InternetChargeType", internetChargeType); this.internetChargeType = internetChargeType; return this; } /** * Specifies whether the instance is I/O optimized. */ public Builder ioOptimized(Boolean ioOptimized) { this.putQueryParameter("IoOptimized", ioOptimized); this.ioOptimized = ioOptimized; return this; } /** * IPv6 address N of the elastic network interface (ENI). You can specify multiple IPv6 addresses. Valid values of N: 1 to 100. */ public Builder ipv6Address(java.util.List < String > ipv6Address) { this.putQueryParameter("Ipv6Address", ipv6Address); this.ipv6Address = ipv6Address; return this; } /** * The name of the SSH key pair bound to the instance. */ public Builder keyPairName(String keyPairName) { this.putQueryParameter("KeyPairName", keyPairName); this.keyPairName = keyPairName; return this; } /** * The reason why the instance is locked. Valid values: *

* * * financial: The instance is locked due to overdue payments. * * security: The instance is locked due to security reasons. * * recycling: The preemptible instance is locked and pending release. * * dedicatedhostfinancial: The instance is locked due to overdue payments for the dedicated host. * * refunded: The instance is locked because a refund is made for the instance. */ public Builder lockReason(String lockReason) { this.putQueryParameter("LockReason", lockReason); this.lockReason = lockReason; return this; } /** * The maximum number of entries to return on each page. Maximum value: 100. *

* * Default value: * * * If this parameter is not specified or is set to a value smaller than 10, the default value is 10. * * If this parameter is set to a value greater than 100, the default value is 100. */ public Builder maxResults(Integer maxResults) { this.putQueryParameter("MaxResults", maxResults); this.maxResults = maxResults; return this; } /** * > This parameter is currently in invitational preview and unavailable for general users. */ public Builder needSaleCycle(Boolean needSaleCycle) { this.putQueryParameter("NeedSaleCycle", needSaleCycle); this.needSaleCycle = needSaleCycle; return this; } /** * The query token. Set the value to the `NextToken` value returned in the last call to the DescribeInstances operation. */ public Builder nextToken(String nextToken) { this.putQueryParameter("NextToken", nextToken); this.nextToken = nextToken; return this; } /** * OwnerAccount. */ public Builder ownerAccount(String ownerAccount) { this.putQueryParameter("OwnerAccount", ownerAccount); this.ownerAccount = ownerAccount; return this; } /** * OwnerId. */ public Builder ownerId(Long ownerId) { this.putQueryParameter("OwnerId", ownerId); this.ownerId = ownerId; return this; } /** * The number of the page to return. *

* * Pages start from page 1. * * Default value: 1. */ public Builder pageNumber(Integer pageNumber) { this.putQueryParameter("PageNumber", pageNumber); this.pageNumber = pageNumber; return this; } /** * The number of entries to return on each page. *

* * Maximum value: 100. * * Default value: 10. */ public Builder pageSize(Integer pageSize) { this.putQueryParameter("PageSize", pageSize); this.pageSize = pageSize; return this; } /** * The private IP addresses of instances located in VPCs. This parameter is valid when InstanceNetworkType is set to vpc. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,). */ public Builder privateIpAddresses(String privateIpAddresses) { this.putQueryParameter("PrivateIpAddresses", privateIpAddresses); this.privateIpAddresses = privateIpAddresses; return this; } /** * The public IP addresses of instances. The value can be a JSON array that consists of up to 100 IP addresses. Separate the IP addresses with commas (,). */ public Builder publicIpAddresses(String publicIpAddresses) { this.putQueryParameter("PublicIpAddresses", publicIpAddresses); this.publicIpAddresses = publicIpAddresses; return this; } /** * The Remote Direct Memory Access (RDMA) IP address of the HPC instance. */ public Builder rdmaIpAddresses(String rdmaIpAddresses) { this.putQueryParameter("RdmaIpAddresses", rdmaIpAddresses); this.rdmaIpAddresses = rdmaIpAddresses; return this; } /** * The region ID of the instance. You can call the [DescribeRegions](~~25609~~) operation to query the most recent region list. */ public Builder regionId(String regionId) { this.putQueryParameter("RegionId", regionId); this.regionId = regionId; return this; } /** * The ID of the resource group to which the instance belongs. If this parameter is specified to query resources, up to 1,000 resources that belong to the specified resource group can be displayed in the response. *

* * > Resources in the default resource group are displayed in the response regardless of how this parameter is set. */ public Builder resourceGroupId(String resourceGroupId) { this.putQueryParameter("ResourceGroupId", resourceGroupId); this.resourceGroupId = resourceGroupId; return this; } /** * ResourceOwnerAccount. */ public Builder resourceOwnerAccount(String resourceOwnerAccount) { this.putQueryParameter("ResourceOwnerAccount", resourceOwnerAccount); this.resourceOwnerAccount = resourceOwnerAccount; return this; } /** * ResourceOwnerId. */ public Builder resourceOwnerId(Long resourceOwnerId) { this.putQueryParameter("ResourceOwnerId", resourceOwnerId); this.resourceOwnerId = resourceOwnerId; return this; } /** * The ID of the security group to which the instance belongs. */ public Builder securityGroupId(String securityGroupId) { this.putQueryParameter("SecurityGroupId", securityGroupId); this.securityGroupId = securityGroupId; return this; } /** * The state of the instance. Valid values: *

* * * Pending: The instance is being created. * * Running: The instance is running. * * Starting: The instance is being started. * * Stopping: The instance is being stopped. * * Stopped: The instance is stopped. */ public Builder status(String status) { this.putQueryParameter("Status", status); this.status = status; return this; } /** * The tags. */ public Builder tag(java.util.List < Tag> tag) { this.putQueryParameter("Tag", tag); this.tag = tag; return this; } /** * The ID of the vSwitch to which the instance is connected. */ public Builder vSwitchId(String vSwitchId) { this.putQueryParameter("VSwitchId", vSwitchId); this.vSwitchId = vSwitchId; return this; } /** * The ID of the virtual private cloud (VPC) to which the instance belongs. */ public Builder vpcId(String vpcId) { this.putQueryParameter("VpcId", vpcId); this.vpcId = vpcId; return this; } /** * The zone ID of the instance. */ public Builder zoneId(String zoneId) { this.putQueryParameter("ZoneId", zoneId); this.zoneId = zoneId; return this; } @Override public DescribeInstancesRequest build() { return new DescribeInstancesRequest(this); } } public static class Filter extends TeaModel { @NameInMap("Key") private String key; @NameInMap("Value") private String value; private Filter(Builder builder) { this.key = builder.key; this.value = builder.value; } public static Builder builder() { return new Builder(); } public static Filter 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 filter 1 used to query resources. Set the value to `CreationStartTime`. You can specify a time by setting both `Filter.1.Key` and `Filter.1.Value` to query resources that were created after the time. */ public Builder key(String key) { this.key = key; return this; } /** * The value of filter 1 used to query resources. Set the value to a time. If you specify this parameter, you must also specify the `Filter.1.Key` parameter. Specify the time in the `yyyy-MM-ddTHH:mmZ` format. The time must be in UTC. */ public Builder value(String value) { this.value = value; return this; } public Filter build() { return new Filter(this); } } } public static class Tag extends TeaModel { @NameInMap("Key") private String key; @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 tag N of the instance. Valid values of N: 1 to 20. *

* * If a single tag is specified to query resources, up to 1,000 resources that have this tag added can be displayed in the response. If multiple tags are specified to query resources, up to 1,000 resources that have all these tags added can be displayed in the response. To query more than 1,000 resources that have specified tags added, call the [ListTagResources](~~110425~~) operation. */ public Builder key(String key) { this.key = key; return this; } /** * The value of tag N of the instance. Valid values of N: 1 to 20. */ public Builder value(String value) { this.value = value; return this; } public Tag build() { return new Tag(this); } } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy