Class LocalPeeringGateway.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.LocalPeeringGateway.Builder
-
- Enclosing class:
- LocalPeeringGateway
public static class LocalPeeringGateway.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalPeeringGateway
build()
LocalPeeringGateway.Builder
compartmentId(String compartmentId)
The OCID of the compartment containing the LPG.LocalPeeringGateway.Builder
copy(LocalPeeringGateway model)
LocalPeeringGateway.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.LocalPeeringGateway.Builder
displayName(String displayName)
A user-friendly name.LocalPeeringGateway.Builder
freeformTags(Map<String,String> freeformTags)
Simple key-value pair that is applied without any predefined name, type or scope.LocalPeeringGateway.Builder
id(String id)
The LPG’s Oracle ID (OCID).LocalPeeringGateway.Builder
isCrossTenancyPeering(Boolean isCrossTenancyPeering)
Whether the VCN at the other end of the peering is in a different tenancy.LocalPeeringGateway.Builder
lifecycleState(LocalPeeringGateway.LifecycleState lifecycleState)
The LPG’s current lifecycle state.LocalPeeringGateway.Builder
peerAdvertisedCidr(String peerAdvertisedCidr)
The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN at the other end of the peering from this LPG.LocalPeeringGateway.Builder
peerAdvertisedCidrDetails(List<String> peerAdvertisedCidrDetails)
The specific ranges of IP addresses available on or via the VCN at the other end of the peering from this LPG.LocalPeeringGateway.Builder
peerId(String peerId)
The OCID of the peered LPG.LocalPeeringGateway.Builder
peeringStatus(LocalPeeringGateway.PeeringStatus peeringStatus)
Whether the LPG is peered with another LPG.LocalPeeringGateway.Builder
peeringStatusDetails(String peeringStatusDetails)
Additional information regarding the peering status, if applicable.LocalPeeringGateway.Builder
routeTableId(String routeTableId)
The OCID of the route table the LPG is using.LocalPeeringGateway.Builder
timeCreated(Date timeCreated)
The date and time the LPG was created, in the format defined by RFC3339.LocalPeeringGateway.Builder
vcnId(String vcnId)
The OCID of the VCN that uses the LPG.
-
-
-
Method Detail
-
compartmentId
public LocalPeeringGateway.Builder compartmentId(String compartmentId)
The OCID of the compartment containing the LPG.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
definedTags
public LocalPeeringGateway.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 LocalPeeringGateway.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 LocalPeeringGateway.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 LocalPeeringGateway.Builder id(String id)
The LPG’s Oracle ID (OCID).- Parameters:
id
- the value to set- Returns:
- this builder
-
isCrossTenancyPeering
public LocalPeeringGateway.Builder isCrossTenancyPeering(Boolean isCrossTenancyPeering)
Whether the VCN at the other end of the peering is in a different tenancy.Example: false
- Parameters:
isCrossTenancyPeering
- the value to set- Returns:
- this builder
-
lifecycleState
public LocalPeeringGateway.Builder lifecycleState(LocalPeeringGateway.LifecycleState lifecycleState)
The LPG’s current lifecycle state.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
peerAdvertisedCidr
public LocalPeeringGateway.Builder peerAdvertisedCidr(String peerAdvertisedCidr)
The smallest aggregate CIDR that contains all the CIDR routes advertised by the VCN at the other end of the peering from this LPG.See peerAdvertisedCidrDetails for the individual CIDRs. The value is null if the LPG is not peered.
Example: 192.168.0.0/16, or if aggregated with 172.16.0.0/24 then 128.0.0.0/1
- Parameters:
peerAdvertisedCidr
- the value to set- Returns:
- this builder
-
peerAdvertisedCidrDetails
public LocalPeeringGateway.Builder peerAdvertisedCidrDetails(List<String> peerAdvertisedCidrDetails)
The specific ranges of IP addresses available on or via the VCN at the other end of the peering from this LPG.The value is null if the LPG is not peered. You can use these as destination CIDRs for route rules to route a subnet’s traffic to this LPG.
Example: [192.168.0.0/16, 172.16.0.0/24]
- Parameters:
peerAdvertisedCidrDetails
- the value to set- Returns:
- this builder
-
peeringStatus
public LocalPeeringGateway.Builder peeringStatus(LocalPeeringGateway.PeeringStatus peeringStatus)
Whether the LPG is peered with another LPG.NEW means the LPG has not yet been peered. PENDING means the peering is being established. REVOKED means the LPG at the other end of the peering has been deleted.
- Parameters:
peeringStatus
- the value to set- Returns:
- this builder
-
peeringStatusDetails
public LocalPeeringGateway.Builder peeringStatusDetails(String peeringStatusDetails)
Additional information regarding the peering status, if applicable.- Parameters:
peeringStatusDetails
- the value to set- Returns:
- this builder
-
peerId
public LocalPeeringGateway.Builder peerId(String peerId)
The OCID of the peered LPG.- Parameters:
peerId
- the value to set- Returns:
- this builder
-
routeTableId
public LocalPeeringGateway.Builder routeTableId(String routeTableId)
The OCID of the route table the LPG is using.For information about why you would associate a route table with an LPG, see [Transit Routing: Access to Multiple VCNs in Same Region](https://docs.oracle.com/iaas/Content/Network/Tasks/transitrouting.htm).
- Parameters:
routeTableId
- the value to set- Returns:
- this builder
-
timeCreated
public LocalPeeringGateway.Builder timeCreated(Date timeCreated)
The date and time the LPG 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 LocalPeeringGateway.Builder vcnId(String vcnId)
The OCID of the VCN that uses the LPG.- Parameters:
vcnId
- the value to set- Returns:
- this builder
-
build
public LocalPeeringGateway build()
-
copy
public LocalPeeringGateway.Builder copy(LocalPeeringGateway model)
-
-