Package com.ibm.cloud.is.vpc.v1.model
Class SubnetPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.SubnetPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class SubnetPatch extends com.ibm.cloud.sdk.core.service.model.GenericModelSubnetPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubnetPatch.BuilderBuilder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asPatch()Construct a JSON merge-patch from the SubnetPatch.Stringname()Gets the name.NetworkACLIdentitynetworkAcl()Gets the networkAcl.SubnetPatch.BuildernewBuilder()New builder.SubnetPublicGatewayPatchpublicGateway()Gets the publicGateway.RoutingTableIdentityroutingTable()Gets the routingTable.
-
-
-
Method Detail
-
newBuilder
public SubnetPatch.Builder newBuilder()
New builder.- Returns:
- a SubnetPatch builder
-
name
public String name()
Gets the name. The name for this subnet. The name must not be used by another subnet in the VPC.- Returns:
- the name
-
networkAcl
public NetworkACLIdentity networkAcl()
Gets the networkAcl. The network ACL to use for this subnet.- Returns:
- the networkAcl
-
publicGateway
public SubnetPublicGatewayPatch publicGateway()
Gets the publicGateway. The public gateway to use for internet-bound traffic for this subnet.- Returns:
- the publicGateway
-
routingTable
public RoutingTableIdentity routingTable()
Gets the routingTable. The routing table to use for this subnet. The routing table properties `route_direct_link_ingress`, `route_internet_ingress`, `route_transit_gateway_ingress`, and `route_vpc_zone_ingress` must be `false`.- Returns:
- the routingTable
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the SubnetPatch. Note that properties of the SubnetPatch with null values are not represented in the constructed JSON merge-patch object, but can be explicitly set afterward to signify a property delete.- Returns:
- a JSON merge-patch for the SubnetPatch
-
-