com.aliyuncs.eflo.model.v20220530.ListSubnetsRequest Maven / Gradle / Ivy
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.aliyuncs.eflo.model.v20220530;
import com.aliyuncs.RpcAcsRequest;
import java.util.List;
import com.aliyuncs.http.MethodType;
/**
* @author auto create
* @version
*/
public class ListSubnetsRequest extends RpcAcsRequest {
private String type;
private Integer pageNumber;
private String resourceGroupId;
private Integer pageSize;
private List tags;
private String subnetId;
private String vpdId;
private Boolean enablePage;
private String zoneId;
private String subnetName;
private String status;
public ListSubnetsRequest() {
super("eflo", "2022-05-30", "ListSubnets", "eflo");
setMethod(MethodType.POST);
}
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
if(type != null){
putBodyParameter("Type", type);
}
}
public Integer getPageNumber() {
return this.pageNumber;
}
public void setPageNumber(Integer pageNumber) {
this.pageNumber = pageNumber;
if(pageNumber != null){
putBodyParameter("PageNumber", pageNumber.toString());
}
}
public String getResourceGroupId() {
return this.resourceGroupId;
}
public void setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
if(resourceGroupId != null){
putBodyParameter("ResourceGroupId", resourceGroupId);
}
}
public Integer getPageSize() {
return this.pageSize;
}
public void setPageSize(Integer pageSize) {
this.pageSize = pageSize;
if(pageSize != null){
putBodyParameter("PageSize", pageSize.toString());
}
}
public List getTags() {
return this.tags;
}
public void setTags(List tags) {
this.tags = tags;
if (tags != null) {
for (int depth1 = 0; depth1 < tags.size(); depth1++) {
putBodyParameter("Tag." + (depth1 + 1) + ".Value" , tags.get(depth1).getValue());
putBodyParameter("Tag." + (depth1 + 1) + ".Key" , tags.get(depth1).getKey());
}
}
}
public String getSubnetId() {
return this.subnetId;
}
public void setSubnetId(String subnetId) {
this.subnetId = subnetId;
if(subnetId != null){
putBodyParameter("SubnetId", subnetId);
}
}
public String getVpdId() {
return this.vpdId;
}
public void setVpdId(String vpdId) {
this.vpdId = vpdId;
if(vpdId != null){
putBodyParameter("VpdId", vpdId);
}
}
public Boolean getEnablePage() {
return this.enablePage;
}
public void setEnablePage(Boolean enablePage) {
this.enablePage = enablePage;
if(enablePage != null){
putBodyParameter("EnablePage", enablePage.toString());
}
}
public String getZoneId() {
return this.zoneId;
}
public void setZoneId(String zoneId) {
this.zoneId = zoneId;
if(zoneId != null){
putBodyParameter("ZoneId", zoneId);
}
}
public String getSubnetName() {
return this.subnetName;
}
public void setSubnetName(String subnetName) {
this.subnetName = subnetName;
if(subnetName != null){
putBodyParameter("SubnetName", subnetName);
}
}
public String getStatus() {
return this.status;
}
public void setStatus(String status) {
this.status = status;
if(status != null){
putBodyParameter("Status", status);
}
}
public static class Tag {
private String value;
private String key;
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public String getKey() {
return this.key;
}
public void setKey(String key) {
this.key = key;
}
}
@Override
public Class getResponseClass() {
return ListSubnetsResponse.class;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy