Interface AgentInfo.Builder

All Superinterfaces:
Buildable, CopyableBuilder<AgentInfo.Builder,AgentInfo>, SdkBuilder<AgentInfo.Builder,AgentInfo>, SdkPojo
Enclosing class:
AgentInfo

public static interface AgentInfo.Builder extends SdkPojo, CopyableBuilder<AgentInfo.Builder,AgentInfo>
  • Method Details

    • agentId

      AgentInfo.Builder agentId(String agentId)

      The agent or collector ID.

      Parameters:
      agentId - The agent or collector ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hostName

      AgentInfo.Builder hostName(String hostName)

      The name of the host where the agent or collector resides. The host can be a server or virtual machine.

      Parameters:
      hostName - The name of the host where the agent or collector resides. The host can be a server or virtual machine.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentNetworkInfoList

      AgentInfo.Builder agentNetworkInfoList(Collection<AgentNetworkInfo> agentNetworkInfoList)

      Network details about the host where the agent or collector resides.

      Parameters:
      agentNetworkInfoList - Network details about the host where the agent or collector resides.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentNetworkInfoList

      AgentInfo.Builder agentNetworkInfoList(AgentNetworkInfo... agentNetworkInfoList)

      Network details about the host where the agent or collector resides.

      Parameters:
      agentNetworkInfoList - Network details about the host where the agent or collector resides.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentNetworkInfoList

      AgentInfo.Builder agentNetworkInfoList(Consumer<AgentNetworkInfo.Builder>... agentNetworkInfoList)

      Network details about the host where the agent or collector resides.

      This is a convenience method that creates an instance of the AgentNetworkInfo.Builder avoiding the need to create one manually via AgentNetworkInfo.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to agentNetworkInfoList(List<AgentNetworkInfo>).

      Parameters:
      agentNetworkInfoList - a consumer that will call methods on AgentNetworkInfo.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • connectorId

      AgentInfo.Builder connectorId(String connectorId)

      The ID of the connector.

      Parameters:
      connectorId - The ID of the connector.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • version

      AgentInfo.Builder version(String version)

      The agent or collector version.

      Parameters:
      version - The agent or collector version.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • health

      AgentInfo.Builder health(String health)

      The health of the agent.

      Parameters:
      health - The health of the agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • health

      The health of the agent.

      Parameters:
      health - The health of the agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • lastHealthPingTime

      AgentInfo.Builder lastHealthPingTime(String lastHealthPingTime)

      Time since agent health was reported.

      Parameters:
      lastHealthPingTime - Time since agent health was reported.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • collectionStatus

      AgentInfo.Builder collectionStatus(String collectionStatus)

      Status of the collection process for an agent.

      Parameters:
      collectionStatus - Status of the collection process for an agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • agentType

      AgentInfo.Builder agentType(String agentType)

      Type of agent.

      Parameters:
      agentType - Type of agent.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • registeredTime

      AgentInfo.Builder registeredTime(String registeredTime)

      Agent's first registration timestamp in UTC.

      Parameters:
      registeredTime - Agent's first registration timestamp in UTC.
      Returns:
      Returns a reference to this object so that method calls can be chained together.