Interface ListAgentsResponse.Builder

    • Method Detail

      • agents

        ListAgentsResponse.Builder agents​(Collection<AgentListEntry> agents)

        A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).

        Parameters:
        agents - A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • agents

        ListAgentsResponse.Builder agents​(AgentListEntry... agents)

        A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).

        Parameters:
        agents - A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • agents

        ListAgentsResponse.Builder agents​(Consumer<AgentListEntry.Builder>... agents)

        A list of DataSync agents in your Amazon Web Services account in the Amazon Web Services Region specified in the request. The list is ordered by the agents' Amazon Resource Names (ARNs).

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

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #agents(List).

        Parameters:
        agents - a consumer that will call methods on AgentListEntry.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #agents(java.util.Collection)
      • nextToken

        ListAgentsResponse.Builder nextToken​(String nextToken)

        The opaque string that indicates the position to begin the next list of results in the response.

        Parameters:
        nextToken - The opaque string that indicates the position to begin the next list of results in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.