Class Byoasn.Builder

  • Enclosing class:
    Byoasn

    public static class Byoasn.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • lifecycleState

        public Byoasn.Builder lifecycleState​(Byoasn.LifecycleState lifecycleState)
        The Byoasn resource’s current state.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • definedTags

        public Byoasn.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        Defined tags for this resource.

        Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

        Example: {"Operations": {"CostCenter": "42"}}

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

        public Byoasn.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 Byoasn.Builder freeformTags​(Map<String,​String> freeformTags)
        Free-form tags for this resource.

        Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

        Example: {"Department": "Finance"}

        Parameters:
        freeformTags - the value to set
        Returns:
        this builder
      • id

        public Byoasn.Builder id​(String id)
        The OCID of the Byoasn resource.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • asn

        public Byoasn.Builder asn​(Long asn)
        The Autonomous System Number (ASN) you are importing to the Oracle cloud.
        Parameters:
        asn - the value to set
        Returns:
        this builder
      • compartmentId

        public Byoasn.Builder compartmentId​(String compartmentId)
        The OCID of the compartment containing the Byoasn resource.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • timeValidated

        public Byoasn.Builder timeValidated​(Date timeValidated)
        The date and time the Byoasn resource was validated, in the format defined by RFC3339.

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

        Parameters:
        timeValidated - the value to set
        Returns:
        this builder
      • validationToken

        public Byoasn.Builder validationToken​(String validationToken)
        The validation token is an internally-generated ASCII string used in the validation process.

        See Importing a Byoasn for details.

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

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

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

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

        public Byoasn.Builder timeUpdated​(Date timeUpdated)
        The date and time the Byoasn resource was last updated, in the format defined by RFC3339.

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

        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • byoipRanges

        public Byoasn.Builder byoipRanges​(List<ByoasnByoipRange> byoipRanges)
        The BYOIP Ranges that has the Byoasn as origin.
        Parameters:
        byoipRanges - the value to set
        Returns:
        this builder
      • build

        public Byoasn build()