Class Vlan.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.Vlan.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vlan.Builder
availabilityDomain(String availabilityDomain)
The VLAN’s availability domain.Vlan
build()
Vlan.Builder
cidrBlock(String cidrBlock)
The range of IPv4 addresses that will be used for layer 3 communication with hosts outside the VLAN.Vlan.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing the VLAN.Vlan.Builder
copy(Vlan model)
Vlan.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Vlan.Builder
displayName(String displayName)
A user-friendly name.Vlan.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Vlan.Builder
id(String id)
The VLAN’s Oracle ID (OCID).Vlan.Builder
lifecycleState(Vlan.LifecycleState lifecycleState)
The VLAN’s current state.Vlan.Builder
nsgIds(List<String> nsgIds)
A list of the OCIDs of the network security groups (NSGs) to use with this VLAN.Vlan.Builder
routeTableId(String routeTableId)
The OCID of the route table that the VLAN uses.Vlan.Builder
timeCreated(Date timeCreated)
The date and time the VLAN was created, in the format defined by RFC3339.Vlan.Builder
vcnId(String vcnId)
The OCID of the VCN the VLAN is in.Vlan.Builder
vlanTag(Integer vlanTag)
The IEEE 802.1Q VLAN tag of this VLAN.
-
-
-
Method Detail
-
availabilityDomain
public Vlan.Builder availabilityDomain(String availabilityDomain)
The VLAN’s availability domain.This attribute will be null if this is a regional VLAN rather than an AD-specific VLAN.
Example: Uocm:PHX-AD-1
- Parameters:
availabilityDomain
- the value to set- Returns:
- this builder
-
cidrBlock
public Vlan.Builder cidrBlock(String cidrBlock)
The range of IPv4 addresses that will be used for layer 3 communication with hosts outside the VLAN.Example: 192.168.1.0/24
- Parameters:
cidrBlock
- the value to set- Returns:
- this builder
-
compartmentId
public Vlan.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the VLAN.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public Vlan.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.Each key is predefined and scoped to a namespace. Example: {“foo-namespace”: {“bar-key”: “value”}}
- Parameters:
definedTags
- the value to set- Returns:
- this builder
-
displayName
public Vlan.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 Vlan.Builder freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.Exists for cross-compatibility only. Example: {“bar-key”: “value”}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
id
public Vlan.Builder id(String id)
The VLAN’s Oracle ID (OCID).- Parameters:
id
- the value to set- Returns:
- this builder
-
lifecycleState
public Vlan.Builder lifecycleState(Vlan.LifecycleState lifecycleState)
The VLAN’s current state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
nsgIds
public Vlan.Builder nsgIds(List<String> nsgIds)
A list of the OCIDs of the network security groups (NSGs) to use with this VLAN.All VNICs in the VLAN belong to these NSGs. For more information about NSGs, see
NetworkSecurityGroup
.- Parameters:
nsgIds
- the value to set- Returns:
- this builder
-
vlanTag
public Vlan.Builder vlanTag(Integer vlanTag)
The IEEE 802.1Q VLAN tag of this VLAN.Example: 100
- Parameters:
vlanTag
- the value to set- Returns:
- this builder
-
routeTableId
public Vlan.Builder routeTableId(String routeTableId)
The OCID of the route table that the VLAN uses.- Parameters:
routeTableId
- the value to set- Returns:
- this builder
-
timeCreated
public Vlan.Builder timeCreated(Date timeCreated)
The date and time the VLAN was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
vcnId
public Vlan.Builder vcnId(String vcnId)
The OCID of the VCN the VLAN is in.- Parameters:
vcnId
- the value to set- Returns:
- this builder
-
build
public Vlan build()
-
copy
public Vlan.Builder copy(Vlan model)
-
-