Class UpdateVirtualCircuitDetails.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.UpdateVirtualCircuitDetails.Builder
-
- Enclosing class:
- UpdateVirtualCircuitDetails
public static class UpdateVirtualCircuitDetails.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UpdateVirtualCircuitDetails.Builder
bandwidthShapeName(String bandwidthShapeName)
The provisioned data rate of the connection.UpdateVirtualCircuitDetails.Builder
bgpAdminState(UpdateVirtualCircuitDetails.BgpAdminState bgpAdminState)
Set to ENABLED (the default) to activate the BGP session of the virtual circuit, set to DISABLED to deactivate the virtual circuit.UpdateVirtualCircuitDetails
build()
UpdateVirtualCircuitDetails.Builder
copy(UpdateVirtualCircuitDetails model)
UpdateVirtualCircuitDetails.Builder
crossConnectMappings(List<CrossConnectMapping> crossConnectMappings)
An array of mappings, each containing properties for a cross-connect or cross-connect group associated with this virtual circuit.UpdateVirtualCircuitDetails.Builder
customerAsn(Long customerAsn)
The BGP ASN of the network at the other end of the BGP session from Oracle.UpdateVirtualCircuitDetails.Builder
customerBgpAsn(Integer customerBgpAsn)
Deprecated.UpdateVirtualCircuitDetails.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.UpdateVirtualCircuitDetails.Builder
displayName(String displayName)
A user-friendly name.UpdateVirtualCircuitDetails.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.UpdateVirtualCircuitDetails.Builder
gatewayId(String gatewayId)
UpdateVirtualCircuitDetails.Builder
ipMtu(VirtualCircuitIpMtu ipMtu)
The layer 3 IP MTU to use on this virtual circuit.UpdateVirtualCircuitDetails.Builder
isBfdEnabled(Boolean isBfdEnabled)
Set to true to enable BFD for IPv4 BGP peering, or set to false to disable BFD.UpdateVirtualCircuitDetails.Builder
isTransportMode(Boolean isTransportMode)
Set to true for the virtual circuit to carry only encrypted traffic, or set to false for the virtual circuit to carry unencrypted traffic.UpdateVirtualCircuitDetails.Builder
providerServiceKeyName(String providerServiceKeyName)
The service key name offered by the provider (if the customer is connecting via a provider).UpdateVirtualCircuitDetails.Builder
providerState(UpdateVirtualCircuitDetails.ProviderState providerState)
The provider’s state in relation to this virtual circuit.UpdateVirtualCircuitDetails.Builder
referenceComment(String referenceComment)
Provider-supplied reference information about this virtual circuit.UpdateVirtualCircuitDetails.Builder
routingPolicy(List<UpdateVirtualCircuitDetails.RoutingPolicy> routingPolicy)
The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit.
-
-
-
Method Detail
-
bandwidthShapeName
public UpdateVirtualCircuitDetails.Builder bandwidthShapeName(String bandwidthShapeName)
The provisioned data rate of the connection.To get a list of the available bandwidth levels (that is, shapes), see
listFastConnectProviderVirtualCircuitBandwidthShapes
. To be updated only by the customer who owns the virtual circuit.- Parameters:
bandwidthShapeName
- the value to set- Returns:
- this builder
-
crossConnectMappings
public UpdateVirtualCircuitDetails.Builder crossConnectMappings(List<CrossConnectMapping> crossConnectMappings)
An array of mappings, each containing properties for a cross-connect or cross-connect group associated with this virtual circuit.The customer and provider can update different properties in the mapping depending on the situation. See the description of the
CrossConnectMapping
.- Parameters:
crossConnectMappings
- the value to set- Returns:
- this builder
-
routingPolicy
public UpdateVirtualCircuitDetails.Builder routingPolicy(List<UpdateVirtualCircuitDetails.RoutingPolicy> routingPolicy)
The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit.Policies available are: ORACLE_SERVICE_NETWORK, REGIONAL, MARKET_LEVEL, and GLOBAL. See Route Filtering for details. By default, routing information is shared for all routes in the same market.
- Parameters:
routingPolicy
- the value to set- Returns:
- this builder
-
bgpAdminState
public UpdateVirtualCircuitDetails.Builder bgpAdminState(UpdateVirtualCircuitDetails.BgpAdminState bgpAdminState)
Set to ENABLED (the default) to activate the BGP session of the virtual circuit, set to DISABLED to deactivate the virtual circuit.- Parameters:
bgpAdminState
- the value to set- Returns:
- this builder
-
isBfdEnabled
public UpdateVirtualCircuitDetails.Builder isBfdEnabled(Boolean isBfdEnabled)
Set to true to enable BFD for IPv4 BGP peering, or set to false to disable BFD.If this is not set, the default is false.
- Parameters:
isBfdEnabled
- the value to set- Returns:
- this builder
-
isTransportMode
public UpdateVirtualCircuitDetails.Builder isTransportMode(Boolean isTransportMode)
Set to true for the virtual circuit to carry only encrypted traffic, or set to false for the virtual circuit to carry unencrypted traffic.If this is not set, the default is false.
- Parameters:
isTransportMode
- the value to set- Returns:
- this builder
-
customerBgpAsn
public UpdateVirtualCircuitDetails.Builder customerBgpAsn(Integer customerBgpAsn)
Deprecated.Instead use customerAsn. If you specify values for both, the request will be rejected.
- Parameters:
customerBgpAsn
- the value to set- Returns:
- this builder
-
customerAsn
public UpdateVirtualCircuitDetails.Builder customerAsn(Long customerAsn)
The BGP ASN of the network at the other end of the BGP session from Oracle.If the BGP session is from the customer's edge router to Oracle, the required value is the customer's ASN, and it can be updated only by the customer.
If the BGP session is from the provider's edge router to Oracle, the required value is the provider's ASN, and it can be updated only by the provider.
Can be a 2-byte or 4-byte ASN. Uses "asplain" format.
- Parameters:
customerAsn
- the value to set- Returns:
- this builder
-
definedTags
public UpdateVirtualCircuitDetails.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 UpdateVirtualCircuitDetails.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 UpdateVirtualCircuitDetails.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
-
gatewayId
public UpdateVirtualCircuitDetails.Builder gatewayId(String gatewayId)
The OCID of theDrg
that this private virtual circuit uses.To be updated only by the customer who owns the virtual circuit.
- Parameters:
gatewayId
- the value to set- Returns:
- this builder
-
providerState
public UpdateVirtualCircuitDetails.Builder providerState(UpdateVirtualCircuitDetails.ProviderState providerState)
The provider’s state in relation to this virtual circuit.Relevant only if the customer is using FastConnect via a provider. ACTIVE means the provider has provisioned the virtual circuit from their end. INACTIVE means the provider has not yet provisioned the virtual circuit, or has de-provisioned it.
To be updated only by the provider.
- Parameters:
providerState
- the value to set- Returns:
- this builder
-
providerServiceKeyName
public UpdateVirtualCircuitDetails.Builder providerServiceKeyName(String providerServiceKeyName)
The service key name offered by the provider (if the customer is connecting via a provider).- Parameters:
providerServiceKeyName
- the value to set- Returns:
- this builder
-
referenceComment
public UpdateVirtualCircuitDetails.Builder referenceComment(String referenceComment)
Provider-supplied reference information about this virtual circuit.Relevant only if the customer is using FastConnect via a provider.
To be updated only by the provider.
- Parameters:
referenceComment
- the value to set- Returns:
- this builder
-
ipMtu
public UpdateVirtualCircuitDetails.Builder ipMtu(VirtualCircuitIpMtu ipMtu)
The layer 3 IP MTU to use on this virtual circuit.- Parameters:
ipMtu
- the value to set- Returns:
- this builder
-
build
public UpdateVirtualCircuitDetails build()
-
copy
public UpdateVirtualCircuitDetails.Builder copy(UpdateVirtualCircuitDetails model)
-
-