Class VirtualCircuit.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bandwidthShapeName

        public VirtualCircuit.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.

        Example: 10 Gbps

        Parameters:
        bandwidthShapeName - the value to set
        Returns:
        this builder
      • compartmentId

        public VirtualCircuit.Builder compartmentId​(String compartmentId)
        The OCID of the compartment containing the virtual circuit.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • crossConnectMappings

        public VirtualCircuit.Builder crossConnectMappings​(List<CrossConnectMapping> crossConnectMappings)
        An array of mappings, each containing properties for a cross-connect or cross-connect group that is associated with this virtual circuit.
        Parameters:
        crossConnectMappings - the value to set
        Returns:
        this builder
      • isTransportMode

        public VirtualCircuit.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 VirtualCircuit.Builder customerBgpAsn​(Integer customerBgpAsn)
        The BGP ASN of the network at the other end of the BGP session from Oracle.

        If the session is between the customer’s edge router and Oracle, the value is the customer’s ASN. If the BGP session is between the provider’s edge router and Oracle, the value is the provider’s ASN.

        Parameters:
        customerBgpAsn - the value to set
        Returns:
        this builder
      • displayName

        public VirtualCircuit.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
      • gatewayId

        public VirtualCircuit.Builder gatewayId​(String gatewayId)
        The OCID of the customer’s Drg that this virtual circuit uses.

        Applicable only to private virtual circuits.

        Parameters:
        gatewayId - the value to set
        Returns:
        this builder
      • oracleBgpAsn

        public VirtualCircuit.Builder oracleBgpAsn​(Integer oracleBgpAsn)
        The Oracle BGP ASN.
        Parameters:
        oracleBgpAsn - the value to set
        Returns:
        this builder
      • providerName

        public VirtualCircuit.Builder providerName​(String providerName)
        Deprecated.

        Instead use providerServiceId.

        Parameters:
        providerName - the value to set
        Returns:
        this builder
      • providerServiceId

        public VirtualCircuit.Builder providerServiceId​(String providerServiceId)
        The OCID of the service offered by the provider (if the customer is connecting via a provider).
        Parameters:
        providerServiceId - the value to set
        Returns:
        this builder
      • providerServiceName

        public VirtualCircuit.Builder providerServiceName​(String providerServiceName)
        Deprecated.

        Instead use providerServiceId.

        Parameters:
        providerServiceName - the value to set
        Returns:
        this builder
      • providerState

        public VirtualCircuit.Builder providerState​(VirtualCircuit.ProviderState providerState)
        The provider’s state in relation to this virtual circuit (if the customer is connecting 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.

        Parameters:
        providerState - the value to set
        Returns:
        this builder
      • publicPrefixes

        public VirtualCircuit.Builder publicPrefixes​(List<String> publicPrefixes)
        For a public virtual circuit.

        The public IP prefixes (CIDRs) the customer wants to advertise across the connection. All prefix sizes are allowed.

        Parameters:
        publicPrefixes - the value to set
        Returns:
        this builder
      • referenceComment

        public VirtualCircuit.Builder referenceComment​(String referenceComment)
        Provider-supplied reference information about this virtual circuit (if the customer is connecting via a provider).
        Parameters:
        referenceComment - the value to set
        Returns:
        this builder
      • region

        public VirtualCircuit.Builder region​(String region)
        The Oracle Cloud Infrastructure region where this virtual circuit is located.
        Parameters:
        region - the value to set
        Returns:
        this builder
      • timeCreated

        public VirtualCircuit.Builder timeCreated​(Date timeCreated)
        The date and time the virtual circuit was created, in the format defined by RFC3339.

        Example: 2016-08-25T21:10:29.600Z

        Parameters:
        timeCreated - the value to set
        Returns:
        this builder