public class DescribeInstancesRequest extends AbstractModel
Constructor and Description |
---|
DescribeInstancesRequest() |
DescribeInstancesRequest(DescribeInstancesRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Filter[] |
getFilters()
Get Filters
`zone` - String - Optional - Filter by the availability zone.
`project-id` - Integer - Optional - Filter by the project ID.
|
String[] |
getInstanceIds()
Get Query by instance ID(s).
|
Long |
getLimit()
Get Number of results returned; default value: 20; maximum: 100.
|
Long |
getOffset()
Get Offset; default value: 0.
|
void |
setFilters(Filter[] Filters)
Set Filters
`zone` - String - Optional - Filter by the availability zone.
`project-id` - Integer - Optional - Filter by the project ID.
|
void |
setInstanceIds(String[] InstanceIds)
Set Query by instance ID(s).
|
void |
setLimit(Long Limit)
Set Number of results returned; default value: 20; maximum: 100.
|
void |
setOffset(Long Offset)
Set Offset; default value: 0.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public DescribeInstancesRequest()
public DescribeInstancesRequest(DescribeInstancesRequest source)
public String[] getInstanceIds()
public void setInstanceIds(String[] InstanceIds)
InstanceIds
- Query by instance ID(s). For example, instance ID: `ins-xxxxxxxx`. For the specific format, refer to section `Ids.N` of the API [Introduction](https://intl.cloud.tencent.com/document/api/213/15688?from_cn_redirect=1). You can query up to 100 instances in each request. However, `InstanceIds` and `Filters` cannot be specified at the same time.public Filter[] getFilters()
public void setFilters(Filter[] Filters)
Filters
- Filters
public Long getOffset()
public void setOffset(Long Offset)
Offset
- Offset; default value: 0. For more information on `Offset`, see the corresponding section in API [Introduction](https://intl.cloud.tencent.com/document/product/377).public Long getLimit()
public void setLimit(Long Limit)
Limit
- Number of results returned; default value: 20; maximum: 100. For more information on `Limit`, see the corresponding section in API [Introduction](https://intl.cloud.tencent.com/document/product/377).Copyright © 2023. All rights reserved.