Class SubnetPatch

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class SubnetPatch
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    SubnetPatch.
    • 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