Package com.ibm.cloud.is.vpc.v1.model
Class InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder
-
- Enclosing class:
- InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment
public static class InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(InstancePrototypeInstanceBySourceSnapshot instancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment)
Instantiates a new Builder from an existing InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment instance.Builder(VolumeAttachmentPrototypeInstanceBySourceSnapshotContext bootVolumeAttachment, ZoneIdentity zone, InstanceNetworkAttachmentPrototype primaryNetworkAttachment)
Instantiates a new builder with required properties.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder(InstancePrototypeInstanceBySourceSnapshot instancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment)
Instantiates a new Builder from an existing InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment instance.- Parameters:
instancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment
- the instance to initialize the Builder with
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(VolumeAttachmentPrototypeInstanceBySourceSnapshotContext bootVolumeAttachment, ZoneIdentity zone, InstanceNetworkAttachmentPrototype primaryNetworkAttachment)
Instantiates a new builder with required properties.- Parameters:
bootVolumeAttachment
- the bootVolumeAttachmentzone
- the zoneprimaryNetworkAttachment
- the primaryNetworkAttachment
-
-
Method Detail
-
build
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment build()
Builds a InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.- Returns:
- the new InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment instance
-
addClusterNetworkAttachments
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder addClusterNetworkAttachments(InstanceClusterNetworkAttachmentPrototypeInstanceContext clusterNetworkAttachments)
Adds a new element to clusterNetworkAttachments.- Parameters:
clusterNetworkAttachments
- the new element to be added- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
addKeys
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder addKeys(KeyIdentity keys)
Adds a new element to keys.- Parameters:
keys
- the new element to be added- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
addVolumeAttachments
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder addVolumeAttachments(VolumeAttachmentPrototype volumeAttachments)
Adds a new element to volumeAttachments.- Parameters:
volumeAttachments
- the new element to be added- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
addNetworkAttachments
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder addNetworkAttachments(InstanceNetworkAttachmentPrototype networkAttachments)
Adds a new element to networkAttachments.- Parameters:
networkAttachments
- the new element to be added- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
availabilityPolicy
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder availabilityPolicy(InstanceAvailabilityPolicyPrototype availabilityPolicy)
Set the availabilityPolicy.- Parameters:
availabilityPolicy
- the availabilityPolicy- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
clusterNetworkAttachments
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder clusterNetworkAttachments(List<InstanceClusterNetworkAttachmentPrototypeInstanceContext> clusterNetworkAttachments)
Set the clusterNetworkAttachments. Existing clusterNetworkAttachments will be replaced.- Parameters:
clusterNetworkAttachments
- the clusterNetworkAttachments- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
confidentialComputeMode
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder confidentialComputeMode(String confidentialComputeMode)
Set the confidentialComputeMode.- Parameters:
confidentialComputeMode
- the confidentialComputeMode- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
defaultTrustedProfile
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder defaultTrustedProfile(InstanceDefaultTrustedProfilePrototype defaultTrustedProfile)
Set the defaultTrustedProfile.- Parameters:
defaultTrustedProfile
- the defaultTrustedProfile- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
enableSecureBoot
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder enableSecureBoot(Boolean enableSecureBoot)
Set the enableSecureBoot.- Parameters:
enableSecureBoot
- the enableSecureBoot- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
keys
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder keys(List<KeyIdentity> keys)
Set the keys. Existing keys will be replaced.- Parameters:
keys
- the keys- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
metadataService
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder metadataService(InstanceMetadataServicePrototype metadataService)
Set the metadataService.- Parameters:
metadataService
- the metadataService- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
name
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
placementTarget
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder placementTarget(InstancePlacementTargetPrototype placementTarget)
Set the placementTarget.- Parameters:
placementTarget
- the placementTarget- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
profile
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder profile(InstanceProfileIdentity profile)
Set the profile.- Parameters:
profile
- the profile- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
reservationAffinity
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder reservationAffinity(InstanceReservationAffinityPrototype reservationAffinity)
Set the reservationAffinity.- Parameters:
reservationAffinity
- the reservationAffinity- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
resourceGroup
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
totalVolumeBandwidth
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder totalVolumeBandwidth(long totalVolumeBandwidth)
Set the totalVolumeBandwidth.- Parameters:
totalVolumeBandwidth
- the totalVolumeBandwidth- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
userData
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder userData(String userData)
Set the userData.- Parameters:
userData
- the userData- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
volumeAttachments
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder volumeAttachments(List<VolumeAttachmentPrototype> volumeAttachments)
Set the volumeAttachments. Existing volumeAttachments will be replaced.- Parameters:
volumeAttachments
- the volumeAttachments- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
vpc
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder vpc(VPCIdentity vpc)
Set the vpc.- Parameters:
vpc
- the vpc- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
bootVolumeAttachment
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder bootVolumeAttachment(VolumeAttachmentPrototypeInstanceBySourceSnapshotContext bootVolumeAttachment)
Set the bootVolumeAttachment.- Parameters:
bootVolumeAttachment
- the bootVolumeAttachment- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
zone
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder zone(ZoneIdentity zone)
Set the zone.- Parameters:
zone
- the zone- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
networkAttachments
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder networkAttachments(List<InstanceNetworkAttachmentPrototype> networkAttachments)
Set the networkAttachments. Existing networkAttachments will be replaced.- Parameters:
networkAttachments
- the networkAttachments- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
primaryNetworkAttachment
public InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment.Builder primaryNetworkAttachment(InstanceNetworkAttachmentPrototype primaryNetworkAttachment)
Set the primaryNetworkAttachment.- Parameters:
primaryNetworkAttachment
- the primaryNetworkAttachment- Returns:
- the InstancePrototypeInstanceBySourceSnapshotInstanceBySourceSnapshotInstanceByNetworkAttachment builder
-
-