Package com.oracle.bmc.core.model
Class CreateNetworkSecurityGroupDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.core.model.CreateNetworkSecurityGroupDetails.Builder
-
- Enclosing class:
- CreateNetworkSecurityGroupDetails
public static class CreateNetworkSecurityGroupDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateNetworkSecurityGroupDetails
build()
CreateNetworkSecurityGroupDetails.Builder
compartmentId(String compartmentId)
The OCID of the compartment to contain the network security group.CreateNetworkSecurityGroupDetails.Builder
copy(CreateNetworkSecurityGroupDetails model)
CreateNetworkSecurityGroupDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.CreateNetworkSecurityGroupDetails.Builder
displayName(String displayName)
A user-friendly name.CreateNetworkSecurityGroupDetails.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.CreateNetworkSecurityGroupDetails.Builder
vcnId(String vcnId)
The OCID of the VCN to create the network security group in.
-
-
-
Method Detail
-
compartmentId
public CreateNetworkSecurityGroupDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment to contain the network security group.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public CreateNetworkSecurityGroupDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
displayName
public CreateNetworkSecurityGroupDetails.Builder displayName(String displayName)
A user-friendly name.Does not have to be unique, and it’s changeable. Avoid entering confidential information.
- Parameters:
displayName
- the value to set- Returns:
- this builder
-
freeformTags
public CreateNetworkSecurityGroupDetails.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
vcnId
public CreateNetworkSecurityGroupDetails.Builder vcnId(String vcnId)
The OCID of the VCN to create the network security group in.- Parameters:
vcnId
- the value to set- Returns:
- this builder
-
build
public CreateNetworkSecurityGroupDetails build()
-
copy
public CreateNetworkSecurityGroupDetails.Builder copy(CreateNetworkSecurityGroupDetails model)
-
-