Class AgentSummary.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • id

        public AgentSummary.Builder id​(String id)
        Unique identifier that is immutable on creation.
        Parameters:
        id - the value to set
        Returns:
        this builder
      • displayName

        public AgentSummary.Builder displayName​(String displayName)
        Agent identifier, which can be renamed.
        Parameters:
        displayName - the value to set
        Returns:
        this builder
      • compartmentId

        public AgentSummary.Builder compartmentId​(String compartmentId)
        Compartment identifier.
        Parameters:
        compartmentId - the value to set
        Returns:
        this builder
      • agentVersion

        public AgentSummary.Builder agentVersion​(String agentVersion)
        Agent identifier.
        Parameters:
        agentVersion - the value to set
        Returns:
        this builder
      • osVersion

        public AgentSummary.Builder osVersion​(String osVersion)
        OS version.
        Parameters:
        osVersion - the value to set
        Returns:
        this builder
      • timeCreated

        public AgentSummary.Builder timeCreated​(Date timeCreated)
        The time when the Agent was created.

        An RFC3339 formatted datetime string.

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

        public AgentSummary.Builder timeUpdated​(Date timeUpdated)
        The time when the Agent was updated.

        An RFC3339 formatted datetime string.

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

        public AgentSummary.Builder timeLastSyncReceived​(Date timeLastSyncReceived)
        The time when the last heartbeat of the Agent was noted.

        An RFC3339 formatted datetime string.

        Parameters:
        timeLastSyncReceived - the value to set
        Returns:
        this builder
      • heartBeatStatus

        public AgentSummary.Builder heartBeatStatus​(Agent.HeartBeatStatus heartBeatStatus)
        Current heartbeat status of the Agent based on its timeLastSyncReceived value.
        Parameters:
        heartBeatStatus - the value to set
        Returns:
        this builder
      • environmentId

        public AgentSummary.Builder environmentId​(String environmentId)
        Environment identifier.
        Parameters:
        environmentId - the value to set
        Returns:
        this builder
      • lifecycleState

        public AgentSummary.Builder lifecycleState​(Agent.LifecycleState lifecycleState)
        The current state of the Agent.
        Parameters:
        lifecycleState - the value to set
        Returns:
        this builder
      • lifecycleDetails

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

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

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

        public AgentSummary.Builder freeformTags​(Map<String,​String> freeformTags)
        The freeform tags associated with this resource, if any.

        Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {“Department”: “Finance”}

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

        public AgentSummary.Builder definedTags​(Map<String,​Map<String,​Object>> definedTags)
        The defined tags associated with this resource, if any.

        Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}

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

        public AgentSummary.Builder systemTags​(Map<String,​Map<String,​Object>> systemTags)
        The system tags associated with this resource, if any.

        The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}

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