Package com.ibm.cloud.is.vpc.v1.model
Class BareMetalServerNetworkAttachmentPatch
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.BareMetalServerNetworkAttachmentPatch
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class BareMetalServerNetworkAttachmentPatch extends com.ibm.cloud.sdk.core.service.model.GenericModel
BareMetalServerNetworkAttachmentPatch.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BareMetalServerNetworkAttachmentPatch.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Long>
allowedVlans()
Gets the allowedVlans.Map<String,Object>
asPatch()
Construct a JSON merge-patch from the BareMetalServerNetworkAttachmentPatch.String
name()
Gets the name.BareMetalServerNetworkAttachmentPatch.Builder
newBuilder()
New builder.
-
-
-
Method Detail
-
newBuilder
public BareMetalServerNetworkAttachmentPatch.Builder newBuilder()
New builder.- Returns:
- a BareMetalServerNetworkAttachmentPatch builder
-
allowedVlans
public List<Long> allowedVlans()
Gets the allowedVlans. The VLAN IDs to allow for `vlan` attachments using this PCI attachment, replacing any existing VLAN IDs. The specified values must include IDs for all `vlan` attachments currently using this PCI attachment.- Returns:
- the allowedVlans
-
name
public String name()
Gets the name. The name for this network attachment. The name must not be used by another network attachment for the bare metal server.- Returns:
- the name
-
asPatch
public Map<String,Object> asPatch()
Construct a JSON merge-patch from the BareMetalServerNetworkAttachmentPatch. Note that properties of the BareMetalServerNetworkAttachmentPatch 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 BareMetalServerNetworkAttachmentPatch
-
-