Package com.ibm.cloud.is.vpc.v1.model
Class AddressPrefixPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.AddressPrefixPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class AddressPrefixPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
AddressPrefixPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddressPrefixPatch.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>
asPatch()
Construct a JSON merge-patch from the AddressPrefixPatch.Boolean
isDefault()
Gets the isDefault.String
name()
Gets the name.AddressPrefixPatch.Builder
newBuilder()
New builder.
-
-
-
Method Detail
-
newBuilder
public AddressPrefixPatch.Builder newBuilder()
New builder.- Returns:
- a AddressPrefixPatch builder
-
isDefault
public Boolean isDefault()
Gets the isDefault. Indicates whether this is the default prefix for this zone in this VPC. Updating to true makes this prefix the default prefix for this zone in this VPC, provided the VPC currently has no default address prefix for this zone. Updating to false removes the default prefix for this zone in this VPC.- Returns:
- the isDefault
-
name
public String name()
Gets the name. The name for this address prefix. The name must not be used by another address prefix for the VPC.- Returns:
- the name
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the AddressPrefixPatch. Note that properties of the AddressPrefixPatch 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 AddressPrefixPatch
-
-