Package com.oracle.bmc.identity.model
Class CreateNetworkSourceDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.identity.model.CreateNetworkSourceDetails.Builder
-
- Enclosing class:
- CreateNetworkSourceDetails
public static class CreateNetworkSourceDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateNetworkSourceDetailsbuild()CreateNetworkSourceDetails.BuildercompartmentId(String compartmentId)The OCID of the tenancy (root compartment) containing the network source object.CreateNetworkSourceDetails.Buildercopy(CreateNetworkSourceDetails model)CreateNetworkSourceDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateNetworkSourceDetails.Builderdescription(String description)The description you assign to the network source during creation.CreateNetworkSourceDetails.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CreateNetworkSourceDetails.Buildername(String name)The name you assign to the network source during creation.CreateNetworkSourceDetails.BuilderpublicSourceList(List<String> publicSourceList)A list of allowed public IP addresses and CIDR ranges.CreateNetworkSourceDetails.Builderservices(List<String> services)– The services attribute has no effect and is reserved for use by Oracle.CreateNetworkSourceDetails.BuildervirtualSourceList(List<NetworkSources_virtualSourceList> virtualSourceList)A list of allowed VCN OCID and IP range pairs.
-
-
-
Method Detail
-
compartmentId
public CreateNetworkSourceDetails.Builder compartmentId(String compartmentId)
The OCID of the tenancy (root compartment) containing the network source object.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
name
public CreateNetworkSourceDetails.Builder name(String name)
The name you assign to the network source during creation.The name must be unique across all groups in the tenancy and cannot be changed.
- Parameters:
name- the value to set- Returns:
- this builder
-
publicSourceList
public CreateNetworkSourceDetails.Builder publicSourceList(List<String> publicSourceList)
A list of allowed public IP addresses and CIDR ranges.- Parameters:
publicSourceList- the value to set- Returns:
- this builder
-
virtualSourceList
public CreateNetworkSourceDetails.Builder virtualSourceList(List<NetworkSources_virtualSourceList> virtualSourceList)
A list of allowed VCN OCID and IP range pairs.Example:“vcnId”: “ocid1.vcn.oc1.iad.aaaaaaaaexampleuniqueID”, “ipRanges”: [ “129.213.39.0/24” ]
- Parameters:
virtualSourceList- the value to set- Returns:
- this builder
-
services
public CreateNetworkSourceDetails.Builder services(List<String> services)
– The services attribute has no effect and is reserved for use by Oracle.–
- Parameters:
services- the value to set- Returns:
- this builder
-
description
public CreateNetworkSourceDetails.Builder description(String description)
The description you assign to the network source during creation.Does not have to be unique, and it’s changeable.
- Parameters:
description- the value to set- Returns:
- this builder
-
freeformTags
public CreateNetworkSourceDetails.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
-
definedTags
public CreateNetworkSourceDetails.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
-
build
public CreateNetworkSourceDetails build()
-
copy
public CreateNetworkSourceDetails.Builder copy(CreateNetworkSourceDetails model)
-
-