Class CccInfrastructure.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public CccInfrastructure.Builder id​(String id)
        The Compute Cloud@Customer infrastructure OCID.

        This cannot be changed once created.

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

        public CccInfrastructure.Builder shortName​(String shortName)
        The Compute Cloud@Customer infrastructure short name.

        This cannot be changed once created. The short name is used to refer to the infrastructure in several contexts and is unique.

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

        public CccInfrastructure.Builder displayName​(String displayName)
        The name that will be used to display the Compute Cloud@Customer infrastructure in the Oracle Cloud Infrastructure console.

        Does not have to be unique and can be changed. Avoid entering confidential information.

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

        public CccInfrastructure.Builder description​(String description)
        A mutable client-meaningful text description of the Compute Cloud@Customer infrastructure.

        Avoid entering confidential information.

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

        public CccInfrastructure.Builder compartmentId​(String compartmentId)
        The infrastructure compartment OCID.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • subnetId

        public CccInfrastructure.Builder subnetId​(String subnetId)
        OCID for the network subnet that is used to communicate with Compute Cloud@Customer infrastructure.
        Parameters:
        subnetId - the value to set
        Returns:
        this builder
      • connectionState

        public CccInfrastructure.Builder connectionState​(CccInfrastructure.ConnectionState connectionState)
        The current connection state of the infrastructure.

        A user can only update it from REQUEST to READY or from any state back to REJECT. The system automatically handles the REJECT to REQUEST, READY to CONNECTED, or CONNECTED to DISCONNECTED transitions.

        Parameters:
        connectionState - the value to set
        Returns:
        this builder
      • connectionDetails

        public CccInfrastructure.Builder connectionDetails​(String connectionDetails)
        A message describing the current connection state in more detail.
        Parameters:
        connectionDetails - the value to set
        Returns:
        this builder
      • cccUpgradeScheduleId

        public CccInfrastructure.Builder cccUpgradeScheduleId​(String cccUpgradeScheduleId)
        Schedule used for upgrades.

        If no schedule is associated with the infrastructure, it can be updated at any time.

        Parameters:
        cccUpgradeScheduleId - the value to set
        Returns:
        this builder
      • provisioningFingerprint

        public CccInfrastructure.Builder provisioningFingerprint​(String provisioningFingerprint)
        Fingerprint of a Compute Cloud@Customer infrastructure in a data center generated during the initial connection to this resource.

        The fingerprint should be verified by the administrator when changing the connectionState from REQUEST to READY.

        Parameters:
        provisioningFingerprint - the value to set
        Returns:
        this builder
      • provisioningPin

        public CccInfrastructure.Builder provisioningPin​(String provisioningPin)
        Code that is required for service personnel to connect a Compute Cloud@Customer infrastructure in a data center to this resource.

        This code will only be available when the connectionState is REJECT (usually at create time of the Compute Cloud@Customer infrastructure).

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

        public CccInfrastructure.Builder timeCreated​(Date timeCreated)
        Compute Cloud@Customer infrastructure creation date and time, using an RFC3339 formatted datetime string.
        Parameters:
        timeCreated - the value to set
        Returns:
        this builder
      • timeUpdated

        public CccInfrastructure.Builder timeUpdated​(Date timeUpdated)
        Compute Cloud@Customer infrastructure updated date and time, using an RFC3339 formatted datetime string.
        Parameters:
        timeUpdated - the value to set
        Returns:
        this builder
      • lifecycleDetails

        public CccInfrastructure.Builder lifecycleDetails​(String lifecycleDetails)
        A message describing the current lifecycle state in more detail.

        For example, this can be used to provide actionable information for a resource that is in a Failed state.

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

        public CccInfrastructure.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
      • definedTags

        public CccInfrastructure.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
      • systemTags

        public CccInfrastructure.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        System tags for this resource.

        Each key is predefined and scoped to a namespace. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

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