Package com.ibm.cloud.is.vpc.v1.model
Class CreateSecurityGroupOptions
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.model.GenericModel
-
- com.ibm.cloud.is.vpc.v1.model.CreateSecurityGroupOptions
-
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class CreateSecurityGroupOptions extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createSecurityGroup options.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CreateSecurityGroupOptions.Builder
Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
name()
Gets the name.CreateSecurityGroupOptions.Builder
newBuilder()
New builder.ResourceGroupIdentity
resourceGroup()
Gets the resourceGroup.List<SecurityGroupRulePrototype>
rules()
Gets the rules.VPCIdentity
vpc()
Gets the vpc.
-
-
-
Method Detail
-
newBuilder
public CreateSecurityGroupOptions.Builder newBuilder()
New builder.- Returns:
- a CreateSecurityGroupOptions builder
-
vpc
public VPCIdentity vpc()
Gets the vpc. The VPC this security group will reside in.- Returns:
- the vpc
-
name
public String name()
Gets the name. The name for this security group. The name must not be used by another security group for the VPC. If unspecified, the name will be a hyphenated list of randomly-selected words.- Returns:
- the name
-
resourceGroup
public ResourceGroupIdentity resourceGroup()
Gets the resourceGroup. The resource group to use. If unspecified, the account's [default resource group](https://cloud.ibm.com/apidocs/resource-manager#introduction) will be used.- Returns:
- the resourceGroup
-
rules
public List<SecurityGroupRulePrototype> rules()
Gets the rules. The prototype objects for rules to be created for this security group. If unspecified, no rules will be created, resulting in all traffic being denied.- Returns:
- the rules
-
-