Class CreateClusterNetworkAttachmentOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateClusterNetworkAttachmentOptions.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()
Instantiates a new builder.Builder
(String instanceId, InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface clusterNetworkInterface) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionSet the before.build()
Builds a CreateClusterNetworkAttachmentOptions.clusterNetworkInterface
(InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface clusterNetworkInterface) Set the clusterNetworkInterface.instanceId
(String instanceId) Set the instanceId.Set the name.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
public Builder(String instanceId, InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface clusterNetworkInterface) Instantiates a new builder with required properties.- Parameters:
instanceId
- the instanceIdclusterNetworkInterface
- the clusterNetworkInterface
-
-
Method Details
-
build
Builds a CreateClusterNetworkAttachmentOptions.- Returns:
- the new CreateClusterNetworkAttachmentOptions instance
-
instanceId
Set the instanceId.- Parameters:
instanceId
- the instanceId- Returns:
- the CreateClusterNetworkAttachmentOptions builder
-
clusterNetworkInterface
public CreateClusterNetworkAttachmentOptions.Builder clusterNetworkInterface(InstanceClusterNetworkAttachmentPrototypeClusterNetworkInterface clusterNetworkInterface) Set the clusterNetworkInterface.- Parameters:
clusterNetworkInterface
- the clusterNetworkInterface- Returns:
- the CreateClusterNetworkAttachmentOptions builder
-
before
public CreateClusterNetworkAttachmentOptions.Builder before(InstanceClusterNetworkAttachmentBeforePrototype before) Set the before.- Parameters:
before
- the before- Returns:
- the CreateClusterNetworkAttachmentOptions builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the CreateClusterNetworkAttachmentOptions builder
-