Class CreateVirtualCircuitDetails.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • bandwidthShapeName

        public CreateVirtualCircuitDetails.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 CreateVirtualCircuitDetails.Builder compartmentId​(String compartmentId)
        The OCID of the compartment to contain the virtual circuit.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • crossConnectMappings

        public CreateVirtualCircuitDetails.Builder crossConnectMappings​(List<CrossConnectMapping> crossConnectMappings)
        Create a CrossConnectMapping for each cross-connect or cross-connect group this virtual circuit will run on.
        Parameters:
        crossConnectMappings - the value to set
        Returns:
        this builder
      • routingPolicy

        public CreateVirtualCircuitDetails.Builder routingPolicy​(List<CreateVirtualCircuitDetails.RoutingPolicy> routingPolicy)
        The routing policy sets how routing information about the Oracle cloud is shared over a public virtual circuit.

        Policies available are: ORACLE_SERVICE_NETWORK, REGIONAL, MARKET_LEVEL, and GLOBAL. See Route Filtering for details. By default, routing information is shared for all routes in the same market.

        Parameters:
        routingPolicy - the value to set
        Returns:
        this builder
      • isBfdEnabled

        public CreateVirtualCircuitDetails.Builder isBfdEnabled​(Boolean isBfdEnabled)
        Set to true to enable BFD for IPv4 BGP peering, or set to false to disable BFD.

        If this is not set, the default is false.

        Parameters:
        isBfdEnabled - the value to set
        Returns:
        this builder
      • isTransportMode

        public CreateVirtualCircuitDetails.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 CreateVirtualCircuitDetails.Builder customerBgpAsn​(Integer customerBgpAsn)
        Deprecated.

        Instead use customerAsn. If you specify values for both, the request will be rejected.

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

        public CreateVirtualCircuitDetails.Builder customerAsn​(Long customerAsn)
        Your BGP ASN (either public or private).

        Provide this value only if there’s a BGP session that goes from your edge router to Oracle. Otherwise, leave this empty or null. Can be a 2-byte or 4-byte ASN. Uses “asplain” format.

        Example: 12345 (2-byte) or 1587232876 (4-byte)

        Parameters:
        customerAsn - the value to set
        Returns:
        this builder
      • definedTags

        public CreateVirtualCircuitDetails.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 CreateVirtualCircuitDetails.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 CreateVirtualCircuitDetails.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
      • providerName

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

        Instead use providerServiceId. To get a list of the provider names, see listFastConnectProviderServices.

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

        public CreateVirtualCircuitDetails.Builder providerServiceId​(String providerServiceId)
        The OCID of the service offered by the provider (if you’re connecting via a provider).

        To get a list of the available service offerings, see listFastConnectProviderServices.

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

        public CreateVirtualCircuitDetails.Builder providerServiceKeyName​(String providerServiceKeyName)
        The service key name offered by the provider (if the customer is connecting via a provider).
        Parameters:
        providerServiceKeyName - the value to set
        Returns:
        this builder
      • providerServiceName

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

        Instead use providerServiceId. To get a list of the provider names, see listFastConnectProviderServices.

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

        public CreateVirtualCircuitDetails.Builder region​(String region)
        The Oracle Cloud Infrastructure region where this virtual circuit is located.

        Example: phx

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