Class CreateSecurityGroupOptions.Builder
java.lang.Object
com.ibm.cloud.is.vpc.v1.model.CreateSecurityGroupOptions.Builder
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder()
Instantiates a new builder.Builder
(VPCIdentity vpc) Instantiates a new builder with required properties. -
Method Summary
Modifier and TypeMethodDescriptionAdds a new element to rules.build()
Builds a CreateSecurityGroupOptions.Set the name.resourceGroup
(ResourceGroupIdentity resourceGroup) Set the resourceGroup.rules
(List<SecurityGroupRulePrototype> rules) Set the rules.vpc
(VPCIdentity vpc) Set the vpc.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
vpc
- the vpc
-
-
Method Details
-
build
Builds a CreateSecurityGroupOptions.- Returns:
- the new CreateSecurityGroupOptions instance
-
addRules
Adds a new element to rules.- Parameters:
rules
- the new element to be added- Returns:
- the CreateSecurityGroupOptions builder
-
vpc
Set the vpc.- Parameters:
vpc
- the vpc- Returns:
- the CreateSecurityGroupOptions builder
-
name
Set the name.- Parameters:
name
- the name- Returns:
- the CreateSecurityGroupOptions builder
-
resourceGroup
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateSecurityGroupOptions builder
-
rules
Set the rules. Existing rules will be replaced.- Parameters:
rules
- the rules- Returns:
- the CreateSecurityGroupOptions builder
-