Class Subnet
- java.lang.Object
-
- io.fabric8.openshift.api.model.installer.aws.v1.Subnet
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<SubnetBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class Subnet extends Object implements io.fabric8.kubernetes.api.builder.Editable<SubnetBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
Subnet specifies a subnet in an existing VPC and can optionally specify their intended roles.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Subnet()No args constructor for use in serializationSubnet(String id, List<SubnetRole> roles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubnetBuilderedit()Map<String,Object>getAdditionalProperties()StringgetId()ID specifies the subnet ID of an existing subnet.List<SubnetRole>getRoles()Roles specifies the roles (aka functions) that the subnet will provide in the cluster.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetId(String id)ID specifies the subnet ID of an existing subnet.voidsetRoles(List<SubnetRole> roles)Roles specifies the roles (aka functions) that the subnet will provide in the cluster.SubnetBuildertoBuilder()
-
-
-
Constructor Detail
-
Subnet
public Subnet()
No args constructor for use in serialization
-
Subnet
public Subnet(String id, List<SubnetRole> roles)
-
-
Method Detail
-
getId
public String getId()
ID specifies the subnet ID of an existing subnet. The subnet ID must start with "subnet-", consist only of alphanumeric characters, and must be exactly 24 characters long.
-
setId
public void setId(String id)
ID specifies the subnet ID of an existing subnet. The subnet ID must start with "subnet-", consist only of alphanumeric characters, and must be exactly 24 characters long.
-
getRoles
public List<SubnetRole> getRoles()
Roles specifies the roles (aka functions) that the subnet will provide in the cluster. If no roles are specified on any subnet, then the subnet roles are decided automatically. Each role must be unique.
-
setRoles
public void setRoles(List<SubnetRole> roles)
Roles specifies the roles (aka functions) that the subnet will provide in the cluster. If no roles are specified on any subnet, then the subnet roles are decided automatically. Each role must be unique.
-
edit
public SubnetBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<SubnetBuilder>
-
toBuilder
public SubnetBuilder toBuilder()
-
-