/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace ConnectCases { namespace Model { /** */ class SearchRelatedItemsRequest : public ConnectCasesRequest { public: AWS_CONNECTCASES_API SearchRelatedItemsRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "SearchRelatedItems"; } AWS_CONNECTCASES_API Aws::String SerializePayload() const override; /** *

A unique identifier of the case.

*/ inline const Aws::String& GetCaseId() const{ return m_caseId; } /** *

A unique identifier of the case.

*/ inline bool CaseIdHasBeenSet() const { return m_caseIdHasBeenSet; } /** *

A unique identifier of the case.

*/ inline void SetCaseId(const Aws::String& value) { m_caseIdHasBeenSet = true; m_caseId = value; } /** *

A unique identifier of the case.

*/ inline void SetCaseId(Aws::String&& value) { m_caseIdHasBeenSet = true; m_caseId = std::move(value); } /** *

A unique identifier of the case.

*/ inline void SetCaseId(const char* value) { m_caseIdHasBeenSet = true; m_caseId.assign(value); } /** *

A unique identifier of the case.

*/ inline SearchRelatedItemsRequest& WithCaseId(const Aws::String& value) { SetCaseId(value); return *this;} /** *

A unique identifier of the case.

*/ inline SearchRelatedItemsRequest& WithCaseId(Aws::String&& value) { SetCaseId(std::move(value)); return *this;} /** *

A unique identifier of the case.

*/ inline SearchRelatedItemsRequest& WithCaseId(const char* value) { SetCaseId(value); return *this;} /** *

The unique identifier of the Cases domain.

*/ inline const Aws::String& GetDomainId() const{ return m_domainId; } /** *

The unique identifier of the Cases domain.

*/ inline bool DomainIdHasBeenSet() const { return m_domainIdHasBeenSet; } /** *

The unique identifier of the Cases domain.

*/ inline void SetDomainId(const Aws::String& value) { m_domainIdHasBeenSet = true; m_domainId = value; } /** *

The unique identifier of the Cases domain.

*/ inline void SetDomainId(Aws::String&& value) { m_domainIdHasBeenSet = true; m_domainId = std::move(value); } /** *

The unique identifier of the Cases domain.

*/ inline void SetDomainId(const char* value) { m_domainIdHasBeenSet = true; m_domainId.assign(value); } /** *

The unique identifier of the Cases domain.

*/ inline SearchRelatedItemsRequest& WithDomainId(const Aws::String& value) { SetDomainId(value); return *this;} /** *

The unique identifier of the Cases domain.

*/ inline SearchRelatedItemsRequest& WithDomainId(Aws::String&& value) { SetDomainId(std::move(value)); return *this;} /** *

The unique identifier of the Cases domain.

*/ inline SearchRelatedItemsRequest& WithDomainId(const char* value) { SetDomainId(value); return *this;} /** *

The list of types of related items and their parameters to use for * filtering.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

The list of types of related items and their parameters to use for * filtering.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

The list of types of related items and their parameters to use for * filtering.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

The list of types of related items and their parameters to use for * filtering.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

The list of types of related items and their parameters to use for * filtering.

*/ inline SearchRelatedItemsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

The list of types of related items and their parameters to use for * filtering.

*/ inline SearchRelatedItemsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

The list of types of related items and their parameters to use for * filtering.

*/ inline SearchRelatedItemsRequest& AddFilters(const RelatedItemTypeFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

The list of types of related items and their parameters to use for * filtering.

*/ inline SearchRelatedItemsRequest& AddFilters(RelatedItemTypeFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The maximum number of results to return per page.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of results to return per page.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of results to return per page.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of results to return per page.

*/ inline SearchRelatedItemsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline SearchRelatedItemsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline SearchRelatedItemsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The token for the next set of results. Use the value returned in the previous * response in the next request to retrieve the next set of results.

*/ inline SearchRelatedItemsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_caseId; bool m_caseIdHasBeenSet = false; Aws::String m_domainId; bool m_domainIdHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace ConnectCases } // namespace Aws