Package com.ibm.cloud.is.vpc.v1.model
Class InstancePatch.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.InstancePatch.Builder
-
- Enclosing class:
- InstancePatch
public static class InstancePatch.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstancePatch.Builder
availabilityPolicy(InstanceAvailabilityPolicyPatch availabilityPolicy)
Set the availabilityPolicy.InstancePatch
build()
Builds a InstancePatch.InstancePatch.Builder
metadataService(InstanceMetadataServicePatch metadataService)
Set the metadataService.InstancePatch.Builder
name(String name)
Set the name.InstancePatch.Builder
placementTarget(InstancePlacementTargetPatch placementTarget)
Set the placementTarget.InstancePatch.Builder
profile(InstancePatchProfile profile)
Set the profile.InstancePatch.Builder
reservationAffinity(InstanceReservationAffinityPatch reservationAffinity)
Set the reservationAffinity.InstancePatch.Builder
totalVolumeBandwidth(long totalVolumeBandwidth)
Set the totalVolumeBandwidth.
-
-
-
Method Detail
-
build
public InstancePatch build()
Builds a InstancePatch.- Returns:
- the new InstancePatch instance
-
availabilityPolicy
public InstancePatch.Builder availabilityPolicy(InstanceAvailabilityPolicyPatch availabilityPolicy)
Set the availabilityPolicy.- Parameters:
availabilityPolicy
- the availabilityPolicy- Returns:
- the InstancePatch builder
-
metadataService
public InstancePatch.Builder metadataService(InstanceMetadataServicePatch metadataService)
Set the metadataService.- Parameters:
metadataService
- the metadataService- Returns:
- the InstancePatch builder
-
name
public InstancePatch.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the InstancePatch builder
-
placementTarget
public InstancePatch.Builder placementTarget(InstancePlacementTargetPatch placementTarget)
Set the placementTarget.- Parameters:
placementTarget
- the placementTarget- Returns:
- the InstancePatch builder
-
profile
public InstancePatch.Builder profile(InstancePatchProfile profile)
Set the profile.- Parameters:
profile
- the profile- Returns:
- the InstancePatch builder
-
reservationAffinity
public InstancePatch.Builder reservationAffinity(InstanceReservationAffinityPatch reservationAffinity)
Set the reservationAffinity.- Parameters:
reservationAffinity
- the reservationAffinity- Returns:
- the InstancePatch builder
-
totalVolumeBandwidth
public InstancePatch.Builder totalVolumeBandwidth(long totalVolumeBandwidth)
Set the totalVolumeBandwidth.- Parameters:
totalVolumeBandwidth
- the totalVolumeBandwidth- Returns:
- the InstancePatch builder
-
-