Class CreateVtapDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.CreateVtapDetails.Builder
-
- Enclosing class:
- CreateVtapDetails
public static class CreateVtapDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateVtapDetailsbuild()CreateVtapDetails.BuildercaptureFilterId(String captureFilterId)The capture filter’s Oracle ID (OCID).CreateVtapDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the Vtap resource.CreateVtapDetails.Buildercopy(CreateVtapDetails model)CreateVtapDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateVtapDetails.BuilderdisplayName(String displayName)A user-friendly name.CreateVtapDetails.BuilderencapsulationProtocol(CreateVtapDetails.EncapsulationProtocol encapsulationProtocol)Defines an encapsulation header type for the VTAP’s mirrored traffic.CreateVtapDetails.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.CreateVtapDetails.BuilderisVtapEnabled(Boolean isVtapEnabled)Used to start or stop a Vtap resource.CreateVtapDetails.BuildermaxPacketSize(Integer maxPacketSize)The maximum size of the packets to be included in the filter.CreateVtapDetails.BuildersourceId(String sourceId)The OCID of the source point where packets are captured.CreateVtapDetails.BuildersourcePrivateEndpointIp(String sourcePrivateEndpointIp)The IP Address of the source private endpoint.CreateVtapDetails.BuildersourcePrivateEndpointSubnetId(String sourcePrivateEndpointSubnetId)The OCID of the subnet that source private endpoint belongs to.CreateVtapDetails.BuildersourceType(CreateVtapDetails.SourceType sourceType)The source type for the VTAP.CreateVtapDetails.BuildertargetId(String targetId)The OCID of the destination resource where mirrored packets are sent.CreateVtapDetails.BuildertargetIp(String targetIp)The IP address of the destination resource where mirrored packets are sent.CreateVtapDetails.BuildertargetType(CreateVtapDetails.TargetType targetType)The target type for the VTAP.CreateVtapDetails.BuildertrafficMode(CreateVtapDetails.TrafficMode trafficMode)Used to control the priority of traffic.CreateVtapDetails.BuildervcnId(String vcnId)The OCID of the VCN containing the Vtap resource.CreateVtapDetails.BuildervxlanNetworkIdentifier(Long vxlanNetworkIdentifier)The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN.
-
-
-
Method Detail
-
compartmentId
public CreateVtapDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the Vtap resource.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
vcnId
public CreateVtapDetails.Builder vcnId(String vcnId)
The OCID of the VCN containing the Vtap resource.- Parameters:
vcnId- the value to set- Returns:
- this builder
-
definedTags
public CreateVtapDetails.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 CreateVtapDetails.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 CreateVtapDetails.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
-
sourceId
public CreateVtapDetails.Builder sourceId(String sourceId)
The OCID of the source point where packets are captured.- Parameters:
sourceId- the value to set- Returns:
- this builder
-
targetId
public CreateVtapDetails.Builder targetId(String targetId)
The OCID of the destination resource where mirrored packets are sent.- Parameters:
targetId- the value to set- Returns:
- this builder
-
targetIp
public CreateVtapDetails.Builder targetIp(String targetIp)
The IP address of the destination resource where mirrored packets are sent.- Parameters:
targetIp- the value to set- Returns:
- this builder
-
captureFilterId
public CreateVtapDetails.Builder captureFilterId(String captureFilterId)
The capture filter’s Oracle ID (OCID).- Parameters:
captureFilterId- the value to set- Returns:
- this builder
-
encapsulationProtocol
public CreateVtapDetails.Builder encapsulationProtocol(CreateVtapDetails.EncapsulationProtocol encapsulationProtocol)
Defines an encapsulation header type for the VTAP’s mirrored traffic.- Parameters:
encapsulationProtocol- the value to set- Returns:
- this builder
-
vxlanNetworkIdentifier
public CreateVtapDetails.Builder vxlanNetworkIdentifier(Long vxlanNetworkIdentifier)
The virtual extensible LAN (VXLAN) network identifier (or VXLAN segment ID) that uniquely identifies the VXLAN.- Parameters:
vxlanNetworkIdentifier- the value to set- Returns:
- this builder
-
isVtapEnabled
public CreateVtapDetails.Builder isVtapEnabled(Boolean isVtapEnabled)
Used to start or stop a Vtap resource.TRUE directs the VTAP to start mirroring traffic. * FALSE (Default) directs the VTAP to stop mirroring traffic.
- Parameters:
isVtapEnabled- the value to set- Returns:
- this builder
-
sourceType
public CreateVtapDetails.Builder sourceType(CreateVtapDetails.SourceType sourceType)
The source type for the VTAP.- Parameters:
sourceType- the value to set- Returns:
- this builder
-
trafficMode
public CreateVtapDetails.Builder trafficMode(CreateVtapDetails.TrafficMode trafficMode)
Used to control the priority of traffic.It is an optional field. If it not passed, the value is DEFAULT
- Parameters:
trafficMode- the value to set- Returns:
- this builder
-
maxPacketSize
public CreateVtapDetails.Builder maxPacketSize(Integer maxPacketSize)
The maximum size of the packets to be included in the filter.- Parameters:
maxPacketSize- the value to set- Returns:
- this builder
-
targetType
public CreateVtapDetails.Builder targetType(CreateVtapDetails.TargetType targetType)
The target type for the VTAP.- Parameters:
targetType- the value to set- Returns:
- this builder
-
sourcePrivateEndpointIp
public CreateVtapDetails.Builder sourcePrivateEndpointIp(String sourcePrivateEndpointIp)
The IP Address of the source private endpoint.- Parameters:
sourcePrivateEndpointIp- the value to set- Returns:
- this builder
-
sourcePrivateEndpointSubnetId
public CreateVtapDetails.Builder sourcePrivateEndpointSubnetId(String sourcePrivateEndpointSubnetId)
The OCID of the subnet that source private endpoint belongs to.- Parameters:
sourcePrivateEndpointSubnetId- the value to set- Returns:
- this builder
-
build
public CreateVtapDetails build()
-
copy
public CreateVtapDetails.Builder copy(CreateVtapDetails model)
-
-