Package com.ibm.cloud.is.vpc.v1.model
Class ReplaceBareMetalServerInitializationOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.ReplaceBareMetalServerInitializationOptions.Builder
-
- Enclosing class:
- ReplaceBareMetalServerInitializationOptions
public static class ReplaceBareMetalServerInitializationOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String id, ImageIdentity image, List<KeyIdentity> keys)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReplaceBareMetalServerInitializationOptions.Builder
addKeys(KeyIdentity keys)
Adds a new element to keys.ReplaceBareMetalServerInitializationOptions
build()
Builds a ReplaceBareMetalServerInitializationOptions.ReplaceBareMetalServerInitializationOptions.Builder
id(String id)
Set the id.ReplaceBareMetalServerInitializationOptions.Builder
image(ImageIdentity image)
Set the image.ReplaceBareMetalServerInitializationOptions.Builder
keys(List<KeyIdentity> keys)
Set the keys.ReplaceBareMetalServerInitializationOptions.Builder
userData(String userData)
Set the userData.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String id, ImageIdentity image, List<KeyIdentity> keys)
Instantiates a new builder with required properties.- Parameters:
id
- the idimage
- the imagekeys
- the keys
-
-
Method Detail
-
build
public ReplaceBareMetalServerInitializationOptions build()
Builds a ReplaceBareMetalServerInitializationOptions.- Returns:
- the new ReplaceBareMetalServerInitializationOptions instance
-
addKeys
public ReplaceBareMetalServerInitializationOptions.Builder addKeys(KeyIdentity keys)
Adds a new element to keys.- Parameters:
keys
- the new element to be added- Returns:
- the ReplaceBareMetalServerInitializationOptions builder
-
id
public ReplaceBareMetalServerInitializationOptions.Builder id(String id)
Set the id.- Parameters:
id
- the id- Returns:
- the ReplaceBareMetalServerInitializationOptions builder
-
image
public ReplaceBareMetalServerInitializationOptions.Builder image(ImageIdentity image)
Set the image.- Parameters:
image
- the image- Returns:
- the ReplaceBareMetalServerInitializationOptions builder
-
keys
public ReplaceBareMetalServerInitializationOptions.Builder keys(List<KeyIdentity> keys)
Set the keys. Existing keys will be replaced.- Parameters:
keys
- the keys- Returns:
- the ReplaceBareMetalServerInitializationOptions builder
-
userData
public ReplaceBareMetalServerInitializationOptions.Builder userData(String userData)
Set the userData.- Parameters:
userData
- the userData- Returns:
- the ReplaceBareMetalServerInitializationOptions builder
-
-