Package com.ibm.cloud.is.vpc.v1.model
Class CreateSecurityGroupOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateSecurityGroupOptions.Builder
-
- Enclosing class:
- CreateSecurityGroupOptions
public static class CreateSecurityGroupOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(VPCIdentity vpc)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSecurityGroupOptions.Builder
addRules(SecurityGroupRulePrototype rules)
Adds a new element to rules.CreateSecurityGroupOptions
build()
Builds a CreateSecurityGroupOptions.CreateSecurityGroupOptions.Builder
name(String name)
Set the name.CreateSecurityGroupOptions.Builder
resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.CreateSecurityGroupOptions.Builder
rules(List<SecurityGroupRulePrototype> rules)
Set the rules.CreateSecurityGroupOptions.Builder
vpc(VPCIdentity vpc)
Set the vpc.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(VPCIdentity vpc)
Instantiates a new builder with required properties.- Parameters:
vpc
- the vpc
-
-
Method Detail
-
build
public CreateSecurityGroupOptions build()
Builds a CreateSecurityGroupOptions.- Returns:
- the new CreateSecurityGroupOptions instance
-
addRules
public CreateSecurityGroupOptions.Builder addRules(SecurityGroupRulePrototype rules)
Adds a new element to rules.- Parameters:
rules
- the new element to be added- Returns:
- the CreateSecurityGroupOptions builder
-
vpc
public CreateSecurityGroupOptions.Builder vpc(VPCIdentity vpc)
Set the vpc.- Parameters:
vpc
- the vpc- Returns:
- the CreateSecurityGroupOptions builder
-
name
public CreateSecurityGroupOptions.Builder name(String name)
Set the name.- Parameters:
name
- the name- Returns:
- the CreateSecurityGroupOptions builder
-
resourceGroup
public CreateSecurityGroupOptions.Builder resourceGroup(ResourceGroupIdentity resourceGroup)
Set the resourceGroup.- Parameters:
resourceGroup
- the resourceGroup- Returns:
- the CreateSecurityGroupOptions builder
-
rules
public CreateSecurityGroupOptions.Builder rules(List<SecurityGroupRulePrototype> rules)
Set the rules. Existing rules will be replaced.- Parameters:
rules
- the rules- Returns:
- the CreateSecurityGroupOptions builder
-
-