public class CreateSubnetRequest extends AbstractBceRequest
| Constructor and Description |
|---|
CreateSubnetRequest() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCidr() |
String |
getClientToken() |
String |
getDescription() |
String |
getName() |
String |
getSubnetType() |
String |
getVpcId() |
String |
getZoneName() |
void |
setCidr(String cidr) |
void |
setClientToken(String clientToken) |
void |
setDescription(String description) |
void |
setName(String name) |
void |
setSubnetType(String subnetType) |
void |
setVpcId(String vpcId) |
void |
setZoneName(String zoneName) |
CreateSubnetRequest |
withCidr(String cidr)
Configure cidr for the request.
|
CreateSubnetRequest |
withClientToken(String clientToken)
Configure optional client token for the request.
|
CreateSubnetRequest |
withDescription(String description)
Configure description for the request.
|
CreateSubnetRequest |
withName(String name)
Configure name for the request.
|
CreateSubnetRequest |
withRequestCredentials(BceCredentials credentials)
Configure request credential for the request.
|
CreateSubnetRequest |
withSubnetType(String subnetType)
Configure subnet type for the request.
|
CreateSubnetRequest |
withVpcId(String vpcId)
Configure vpc id for the request.
|
CreateSubnetRequest |
withZoneName(String zoneName)
Configure zoneName for the request.
|
getRequestCredentials, setRequestCredentialspublic String getName()
public void setName(String name)
public String getZoneName()
public void setZoneName(String zoneName)
public String getCidr()
public void setCidr(String cidr)
public String getVpcId()
public void setVpcId(String vpcId)
public String getSubnetType()
public void setSubnetType(String subnetType)
public String getDescription()
public void setDescription(String description)
public String getClientToken()
public void setClientToken(String clientToken)
public CreateSubnetRequest withClientToken(String clientToken)
clientToken - An ASCII string whose length is less than 64.
See more detail at
BCE API docpublic CreateSubnetRequest withName(String name)
name - The name of subnetpublic CreateSubnetRequest withZoneName(String zoneName)
zoneName - the name of available zonepublic CreateSubnetRequest withCidr(String cidr)
cidr - the cidr of subnetpublic CreateSubnetRequest withVpcId(String vpcId)
vpcId - the vpcId of subnetpublic CreateSubnetRequest withSubnetType(String subnetType)
subnetType - the type of subnetpublic CreateSubnetRequest withDescription(String description)
description - the type of subnetpublic CreateSubnetRequest withRequestCredentials(BceCredentials credentials)
withRequestCredentials in class AbstractBceRequestcredentials - a valid instance of BceCredentials.Copyright © 2021. All rights reserved.