Interface SearchAgreementsRequest.Builder

    • Method Detail

      • catalog

        SearchAgreementsRequest.Builder catalog​(String catalog)

        The catalog in which the agreement was created.

        Parameters:
        catalog - The catalog in which the agreement was created.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        SearchAgreementsRequest.Builder filters​(Collection<Filter> filters)

        The filter name and value pair used to return a specific list of results.

        The following filters are supported:

        • ResourceIdentifier – The unique identifier of the resource.

        • ResourceType – Type of the resource, which is the product (AmiProduct, ContainerProduct, or SaaSProduct).

        • PartyType – The party type (either Acceptor or Proposer) of the caller. For agreements where the caller is the proposer, use the Proposer filter. For agreements where the caller is the acceptor, use the Acceptor filter.

        • AcceptorAccountId – The AWS account ID of the party accepting the agreement terms.

        • OfferId – The unique identifier of the offer in which the terms are registered in the agreement token.

        • Status – The current status of the agreement. Values include ACTIVE, ARCHIVED, CANCELLED, EXPIRED, RENEWED, REPLACED, and TERMINATED.

        • BeforeEndTime – A date used to filter agreements with a date before the endTime of an agreement.

        • AfterEndTime – A date used to filter agreements with a date after the endTime of an agreement.

        • AgreementType – The type of agreement. Values include PurchaseAgreement or VendorInsightsAgreement.

        Parameters:
        filters - The filter name and value pair used to return a specific list of results.

        The following filters are supported:

        • ResourceIdentifier – The unique identifier of the resource.

        • ResourceType – Type of the resource, which is the product (AmiProduct, ContainerProduct, or SaaSProduct).

        • PartyType – The party type (either Acceptor or Proposer) of the caller. For agreements where the caller is the proposer, use the Proposer filter. For agreements where the caller is the acceptor, use the Acceptor filter.

        • AcceptorAccountId – The AWS account ID of the party accepting the agreement terms.

        • OfferId – The unique identifier of the offer in which the terms are registered in the agreement token.

        • Status – The current status of the agreement. Values include ACTIVE, ARCHIVED, CANCELLED, EXPIRED, RENEWED, REPLACED, and TERMINATED.

        • BeforeEndTime – A date used to filter agreements with a date before the endTime of an agreement.

        • AfterEndTime – A date used to filter agreements with a date after the endTime of an agreement.

        • AgreementType – The type of agreement. Values include PurchaseAgreement or VendorInsightsAgreement.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        SearchAgreementsRequest.Builder filters​(Filter... filters)

        The filter name and value pair used to return a specific list of results.

        The following filters are supported:

        • ResourceIdentifier – The unique identifier of the resource.

        • ResourceType – Type of the resource, which is the product (AmiProduct, ContainerProduct, or SaaSProduct).

        • PartyType – The party type (either Acceptor or Proposer) of the caller. For agreements where the caller is the proposer, use the Proposer filter. For agreements where the caller is the acceptor, use the Acceptor filter.

        • AcceptorAccountId – The AWS account ID of the party accepting the agreement terms.

        • OfferId – The unique identifier of the offer in which the terms are registered in the agreement token.

        • Status – The current status of the agreement. Values include ACTIVE, ARCHIVED, CANCELLED, EXPIRED, RENEWED, REPLACED, and TERMINATED.

        • BeforeEndTime – A date used to filter agreements with a date before the endTime of an agreement.

        • AfterEndTime – A date used to filter agreements with a date after the endTime of an agreement.

        • AgreementType – The type of agreement. Values include PurchaseAgreement or VendorInsightsAgreement.

        Parameters:
        filters - The filter name and value pair used to return a specific list of results.

        The following filters are supported:

        • ResourceIdentifier – The unique identifier of the resource.

        • ResourceType – Type of the resource, which is the product (AmiProduct, ContainerProduct, or SaaSProduct).

        • PartyType – The party type (either Acceptor or Proposer) of the caller. For agreements where the caller is the proposer, use the Proposer filter. For agreements where the caller is the acceptor, use the Acceptor filter.

        • AcceptorAccountId – The AWS account ID of the party accepting the agreement terms.

        • OfferId – The unique identifier of the offer in which the terms are registered in the agreement token.

        • Status – The current status of the agreement. Values include ACTIVE, ARCHIVED, CANCELLED, EXPIRED, RENEWED, REPLACED, and TERMINATED.

        • BeforeEndTime – A date used to filter agreements with a date before the endTime of an agreement.

        • AfterEndTime – A date used to filter agreements with a date after the endTime of an agreement.

        • AgreementType – The type of agreement. Values include PurchaseAgreement or VendorInsightsAgreement.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • filters

        SearchAgreementsRequest.Builder filters​(Consumer<Filter.Builder>... filters)

        The filter name and value pair used to return a specific list of results.

        The following filters are supported:

        • ResourceIdentifier – The unique identifier of the resource.

        • ResourceType – Type of the resource, which is the product (AmiProduct, ContainerProduct, or SaaSProduct).

        • PartyType – The party type (either Acceptor or Proposer) of the caller. For agreements where the caller is the proposer, use the Proposer filter. For agreements where the caller is the acceptor, use the Acceptor filter.

        • AcceptorAccountId – The AWS account ID of the party accepting the agreement terms.

        • OfferId – The unique identifier of the offer in which the terms are registered in the agreement token.

        • Status – The current status of the agreement. Values include ACTIVE, ARCHIVED, CANCELLED, EXPIRED, RENEWED, REPLACED, and TERMINATED.

        • BeforeEndTime – A date used to filter agreements with a date before the endTime of an agreement.

        • AfterEndTime – A date used to filter agreements with a date after the endTime of an agreement.

        • AgreementType – The type of agreement. Values include PurchaseAgreement or VendorInsightsAgreement.

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

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

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

        SearchAgreementsRequest.Builder maxResults​(Integer maxResults)

        The maximum number of agreements to return in the response.

        Parameters:
        maxResults - The maximum number of agreements to return in the response.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • nextToken

        SearchAgreementsRequest.Builder nextToken​(String nextToken)

        A token to specify where to start pagination.

        Parameters:
        nextToken - A token to specify where to start pagination.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • sort

        SearchAgreementsRequest.Builder sort​(Sort sort)

        An object that contains the SortBy and SortOrder attributes.

        Parameters:
        sort - An object that contains the SortBy and SortOrder attributes.
        Returns:
        Returns a reference to this object so that method calls can be chained together.