Class LocalPeeringGateway.Builder
- java.lang.Object
- 
- com.oracle.bmc.vnmonitoring.model.LocalPeeringGateway.Builder
 
- 
- Enclosing class:
- LocalPeeringGateway
 
 public static class LocalPeeringGateway.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalPeeringGatewaybuild()LocalPeeringGateway.BuildercompartmentId(String compartmentId)The OCID of the compartment containing the LPG.LocalPeeringGateway.Buildercopy(LocalPeeringGateway model)LocalPeeringGateway.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.LocalPeeringGateway.BuilderdisplayName(String displayName)A user-friendly name.LocalPeeringGateway.BuilderfreeformTags(Map<String,String> freeformTags)Simple key-value pair that is applied without any predefined name, type or scope.LocalPeeringGateway.Builderid(String id)The LPG’s Oracle ID (OCID).LocalPeeringGateway.BuilderisCrossTenancyPeering(Boolean isCrossTenancyPeering)Whether the VCN at the other end of the peering is in a different tenancy.LocalPeeringGateway.BuilderlifecycleState(LocalPeeringGateway.LifecycleState lifecycleState)The LPG’s current lifecycle state.LocalPeeringGateway.BuilderpeerAdvertisedCidr(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.BuilderpeerAdvertisedCidrDetails(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.BuilderpeerId(String peerId)The OCID of the peered LPG.LocalPeeringGateway.BuilderpeeringStatus(LocalPeeringGateway.PeeringStatus peeringStatus)Whether the LPG is peered with another LPG.LocalPeeringGateway.BuilderpeeringStatusDetails(String peeringStatusDetails)Additional information regarding the peering status, if applicable.LocalPeeringGateway.BuilderrouteTableId(String routeTableId)The OCID of the route table the LPG is using.LocalPeeringGateway.BuildertimeCreated(Date timeCreated)The date and time the LPG was created, in the format defined by RFC3339.LocalPeeringGateway.BuildervcnId(String vcnId)The OCID of the VCN that uses the LPG.
 
- 
- 
- 
Method Detail- 
compartmentIdpublic LocalPeeringGateway.Builder compartmentId(String compartmentId) The OCID of the compartment containing the LPG.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic 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
 
 - 
displayNamepublic 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
 
 - 
freeformTagspublic 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
 
 - 
idpublic LocalPeeringGateway.Builder id(String id) The LPG’s Oracle ID (OCID).- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
isCrossTenancyPeeringpublic 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
 
 - 
lifecycleStatepublic LocalPeeringGateway.Builder lifecycleState(LocalPeeringGateway.LifecycleState lifecycleState) The LPG’s current lifecycle state.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
peerAdvertisedCidrpublic 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
 
 - 
peerAdvertisedCidrDetailspublic 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
 
 - 
peeringStatuspublic 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
 
 - 
peeringStatusDetailspublic LocalPeeringGateway.Builder peeringStatusDetails(String peeringStatusDetails) Additional information regarding the peering status, if applicable.- Parameters:
- peeringStatusDetails- the value to set
- Returns:
- this builder
 
 - 
peerIdpublic LocalPeeringGateway.Builder peerId(String peerId) The OCID of the peered LPG.- Parameters:
- peerId- the value to set
- Returns:
- this builder
 
 - 
routeTableIdpublic 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
 
 - 
timeCreatedpublic 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
 
 - 
vcnIdpublic LocalPeeringGateway.Builder vcnId(String vcnId) The OCID of the VCN that uses the LPG.- Parameters:
- vcnId- the value to set
- Returns:
- this builder
 
 - 
buildpublic LocalPeeringGateway build() 
 - 
copypublic LocalPeeringGateway.Builder copy(LocalPeeringGateway model) 
 
- 
 
-