Class LocalPeeringGateway.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • 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
      • 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
      • 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
      • 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