Class ManagementAgent.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • installKeyId

        public ManagementAgent.Builder installKeyId​(String installKeyId)
        agent install key identifier
        Parameters:
        installKeyId - the value to set
        Returns:
        this builder
      • displayName

        public ManagementAgent.Builder displayName​(String displayName)
        Management Agent Name
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • platformName

        public ManagementAgent.Builder platformName​(String platformName)
        Platform Name
        Parameters:
        platformName - the value to set
        Returns:
        this builder
      • platformVersion

        public ManagementAgent.Builder platformVersion​(String platformVersion)
        Platform Version
        Parameters:
        platformVersion - the value to set
        Returns:
        this builder
      • version

        public ManagementAgent.Builder version​(String version)
        Management Agent Version
        Parameters:
        version - the value to set
        Returns:
        this builder
      • resourceArtifactVersion

        public ManagementAgent.Builder resourceArtifactVersion​(String resourceArtifactVersion)
        Version of the deployment artifact instantiated by this Management Agent.

        The format for Standalone resourceMode is YYMMDD.HHMM, and the format for other modes (whose artifacts are based upon Standalone but can advance independently) is YYMMDD.HHMM.VVVVVVVVVVVV. VVVVVVVVVVVV is always a numeric value between 000000000000 and 999999999999

        Parameters:
        resourceArtifactVersion - the value to set
        Returns:
        this builder
      • host

        public ManagementAgent.Builder host​(String host)
        Management Agent host machine name
        Parameters:
        host - the value to set
        Returns:
        this builder
      • hostId

        public ManagementAgent.Builder hostId​(String hostId)
        Host resource ocid
        Parameters:
        hostId - the value to set
        Returns:
        this builder
      • installPath

        public ManagementAgent.Builder installPath​(String installPath)
        Path where Management Agent is installed
        Parameters:
        installPath - the value to set
        Returns:
        this builder
      • compartmentId

        public ManagementAgent.Builder compartmentId​(String compartmentId)
        Compartment Identifier
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • isAgentAutoUpgradable

        public ManagementAgent.Builder isAgentAutoUpgradable​(Boolean isAgentAutoUpgradable)
        true if the agent can be upgraded automatically; false if it must be upgraded manually.

        This flag is derived from the tenancy level auto upgrade preference.

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

        public ManagementAgent.Builder timeCreated​(Date timeCreated)
        The time the Management Agent was created.

        An RFC3339 formatted datetime string

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

        public ManagementAgent.Builder timeUpdated​(Date timeUpdated)
        The time the Management Agent was updated.

        An RFC3339 formatted datetime string

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

        public ManagementAgent.Builder timeLastHeartbeat​(Date timeLastHeartbeat)
        The time the Management Agent has last recorded its health status in telemetry.

        This value will be null if the agent has not recorded its health status in last 7 days. An RFC3339 formatted datetime string

        Parameters:
        timeLastHeartbeat - the value to set
        Returns:
        this builder
      • availabilityStatus

        public ManagementAgent.Builder availabilityStatus​(AvailabilityStatus availabilityStatus)
        The current availability status of managementAgent
        Parameters:
        availabilityStatus - the value to set
        Returns:
        this builder
      • lifecycleState

        public ManagementAgent.Builder lifecycleState​(LifecycleStates lifecycleState)
        The current state of managementAgent
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

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

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

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

        public ManagementAgent.Builder isCustomerDeployed​(Boolean isCustomerDeployed)
        true, if the agent image is manually downloaded and installed.

        false, if the agent is deployed as a plugin in Oracle Cloud Agent.

        Parameters:
        isCustomerDeployed - the value to set
        Returns:
        this builder
      • installType

        public ManagementAgent.Builder installType​(InstallTypes installType)
        The install type, either AGENT or GATEWAY
        Parameters:
        installType - the value to set
        Returns:
        this builder
      • managementAgentProperties

        public ManagementAgent.Builder managementAgentProperties​(List<ManagementAgentProperty> managementAgentProperties)
        Additional properties for this Management Agent
        Parameters:
        managementAgentProperties - the value to set
        Returns:
        this builder
      • dataSourceList

        public ManagementAgent.Builder dataSourceList​(List<DataSource> dataSourceList)
        list of dataSources associated with the agent
        Parameters:
        dataSourceList - the value to set
        Returns:
        this builder
      • freeformTags

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