Package com.ibm.cloud.is.vpc.v1.model
Class CreateSecurityGroupRuleOptions.Builder
- java.lang.Object
-
- com.ibm.cloud.is.vpc.v1.model.CreateSecurityGroupRuleOptions.Builder
-
- Enclosing class:
- CreateSecurityGroupRuleOptions
public static class CreateSecurityGroupRuleOptions.Builder extends Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(String securityGroupId, SecurityGroupRulePrototype securityGroupRulePrototype)
Instantiates a new builder with required properties.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSecurityGroupRuleOptions
build()
Builds a CreateSecurityGroupRuleOptions.CreateSecurityGroupRuleOptions.Builder
securityGroupId(String securityGroupId)
Set the securityGroupId.CreateSecurityGroupRuleOptions.Builder
securityGroupRulePrototype(SecurityGroupRulePrototype securityGroupRulePrototype)
Set the securityGroupRulePrototype.
-
-
-
Constructor Detail
-
Builder
public Builder()
Instantiates a new builder.
-
Builder
public Builder(String securityGroupId, SecurityGroupRulePrototype securityGroupRulePrototype)
Instantiates a new builder with required properties.- Parameters:
securityGroupId
- the securityGroupIdsecurityGroupRulePrototype
- the securityGroupRulePrototype
-
-
Method Detail
-
build
public CreateSecurityGroupRuleOptions build()
Builds a CreateSecurityGroupRuleOptions.- Returns:
- the new CreateSecurityGroupRuleOptions instance
-
securityGroupId
public CreateSecurityGroupRuleOptions.Builder securityGroupId(String securityGroupId)
Set the securityGroupId.- Parameters:
securityGroupId
- the securityGroupId- Returns:
- the CreateSecurityGroupRuleOptions builder
-
securityGroupRulePrototype
public CreateSecurityGroupRuleOptions.Builder securityGroupRulePrototype(SecurityGroupRulePrototype securityGroupRulePrototype)
Set the securityGroupRulePrototype.- Parameters:
securityGroupRulePrototype
- the securityGroupRulePrototype- Returns:
- the CreateSecurityGroupRuleOptions builder
-
-