Class RemotePeeringConnection.Builder
- java.lang.Object
-
- com.oracle.bmc.vnmonitoring.model.RemotePeeringConnection.Builder
-
- Enclosing class:
- RemotePeeringConnection
public static class RemotePeeringConnection.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RemotePeeringConnectionbuild()RemotePeeringConnection.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the RPC.RemotePeeringConnection.Buildercopy(RemotePeeringConnection model)RemotePeeringConnection.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.RemotePeeringConnection.BuilderdisplayName(String displayName)A user-friendly name.RemotePeeringConnection.BuilderdrgId(String drgId)The OCID of the DRG that this RPC belongs to.RemotePeeringConnection.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.RemotePeeringConnection.Builderid(String id)The OCID of the RPC.RemotePeeringConnection.BuilderisCrossTenancyPeering(Boolean isCrossTenancyPeering)Whether the VCN at the other end of the peering is in a different tenancy.RemotePeeringConnection.BuilderlifecycleState(RemotePeeringConnection.LifecycleState lifecycleState)The RPC’s current lifecycle state.RemotePeeringConnection.BuilderpeerId(String peerId)If this RPC is peered, this value is the OCID of the other RPC.RemotePeeringConnection.BuilderpeeringStatus(RemotePeeringConnection.PeeringStatus peeringStatus)Whether the RPC is peered with another RPC.RemotePeeringConnection.BuilderpeerRegionName(String peerRegionName)If this RPC is peered, this value is the region that contains the other RPC.RemotePeeringConnection.BuilderpeerTenancyId(String peerTenancyId)If this RPC is peered, this value is the OCID of the other RPC’s tenancy.RemotePeeringConnection.BuildertimeCreated(Date timeCreated)The date and time the RPC was created, in the format defined by RFC3339.
-
-
-
Method Detail
-
compartmentId
public RemotePeeringConnection.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the RPC.- Parameters:
compartmentId- the value to set- Returns:
- this builder
-
definedTags
public RemotePeeringConnection.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 RemotePeeringConnection.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
-
drgId
public RemotePeeringConnection.Builder drgId(String drgId)
The OCID of the DRG that this RPC belongs to.- Parameters:
drgId- the value to set- Returns:
- this builder
-
freeformTags
public RemotePeeringConnection.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 RemotePeeringConnection.Builder id(String id)
The OCID of the RPC.- Parameters:
id- the value to set- Returns:
- this builder
-
isCrossTenancyPeering
public RemotePeeringConnection.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 RemotePeeringConnection.Builder lifecycleState(RemotePeeringConnection.LifecycleState lifecycleState)
The RPC’s current lifecycle state.- Parameters:
lifecycleState- the value to set- Returns:
- this builder
-
peerId
public RemotePeeringConnection.Builder peerId(String peerId)
If this RPC is peered, this value is the OCID of the other RPC.- Parameters:
peerId- the value to set- Returns:
- this builder
-
peerRegionName
public RemotePeeringConnection.Builder peerRegionName(String peerRegionName)
If this RPC is peered, this value is the region that contains the other RPC.Example: us-ashburn-1
- Parameters:
peerRegionName- the value to set- Returns:
- this builder
-
peerTenancyId
public RemotePeeringConnection.Builder peerTenancyId(String peerTenancyId)
If this RPC is peered, this value is the OCID of the other RPC’s tenancy.- Parameters:
peerTenancyId- the value to set- Returns:
- this builder
-
peeringStatus
public RemotePeeringConnection.Builder peeringStatus(RemotePeeringConnection.PeeringStatus peeringStatus)
Whether the RPC is peered with another RPC.NEW means the RPC has not yet been peered. PENDING means the peering is being established. REVOKED means the RPC at the other end of the peering has been deleted.
- Parameters:
peeringStatus- the value to set- Returns:
- this builder
-
timeCreated
public RemotePeeringConnection.Builder timeCreated(Date timeCreated)
The date and time the RPC was created, in the format defined by RFC3339.Example: 2016-08-25T21:10:29.600Z
- Parameters:
timeCreated- the value to set- Returns:
- this builder
-
build
public RemotePeeringConnection build()
-
copy
public RemotePeeringConnection.Builder copy(RemotePeeringConnection model)
-
-