/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Support { namespace Model { /** */ class DescribeCasesRequest : public SupportRequest { public: AWS_SUPPORT_API DescribeCasesRequest(); // 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 "DescribeCases"; } AWS_SUPPORT_API Aws::String SerializePayload() const override; AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A list of ID numbers of the support cases you want returned. The maximum * number of cases is 100.

*/ inline const Aws::Vector& GetCaseIdList() const{ return m_caseIdList; } /** *

A list of ID numbers of the support cases you want returned. The maximum * number of cases is 100.

*/ inline bool CaseIdListHasBeenSet() const { return m_caseIdListHasBeenSet; } /** *

A list of ID numbers of the support cases you want returned. The maximum * number of cases is 100.

*/ inline void SetCaseIdList(const Aws::Vector& value) { m_caseIdListHasBeenSet = true; m_caseIdList = value; } /** *

A list of ID numbers of the support cases you want returned. The maximum * number of cases is 100.

*/ inline void SetCaseIdList(Aws::Vector&& value) { m_caseIdListHasBeenSet = true; m_caseIdList = std::move(value); } /** *

A list of ID numbers of the support cases you want returned. The maximum * number of cases is 100.

*/ inline DescribeCasesRequest& WithCaseIdList(const Aws::Vector& value) { SetCaseIdList(value); return *this;} /** *

A list of ID numbers of the support cases you want returned. The maximum * number of cases is 100.

*/ inline DescribeCasesRequest& WithCaseIdList(Aws::Vector&& value) { SetCaseIdList(std::move(value)); return *this;} /** *

A list of ID numbers of the support cases you want returned. The maximum * number of cases is 100.

*/ inline DescribeCasesRequest& AddCaseIdList(const Aws::String& value) { m_caseIdListHasBeenSet = true; m_caseIdList.push_back(value); return *this; } /** *

A list of ID numbers of the support cases you want returned. The maximum * number of cases is 100.

*/ inline DescribeCasesRequest& AddCaseIdList(Aws::String&& value) { m_caseIdListHasBeenSet = true; m_caseIdList.push_back(std::move(value)); return *this; } /** *

A list of ID numbers of the support cases you want returned. The maximum * number of cases is 100.

*/ inline DescribeCasesRequest& AddCaseIdList(const char* value) { m_caseIdListHasBeenSet = true; m_caseIdList.push_back(value); return *this; } /** *

The ID displayed for a case in the Amazon Web Services Support Center user * interface.

*/ inline const Aws::String& GetDisplayId() const{ return m_displayId; } /** *

The ID displayed for a case in the Amazon Web Services Support Center user * interface.

*/ inline bool DisplayIdHasBeenSet() const { return m_displayIdHasBeenSet; } /** *

The ID displayed for a case in the Amazon Web Services Support Center user * interface.

*/ inline void SetDisplayId(const Aws::String& value) { m_displayIdHasBeenSet = true; m_displayId = value; } /** *

The ID displayed for a case in the Amazon Web Services Support Center user * interface.

*/ inline void SetDisplayId(Aws::String&& value) { m_displayIdHasBeenSet = true; m_displayId = std::move(value); } /** *

The ID displayed for a case in the Amazon Web Services Support Center user * interface.

*/ inline void SetDisplayId(const char* value) { m_displayIdHasBeenSet = true; m_displayId.assign(value); } /** *

The ID displayed for a case in the Amazon Web Services Support Center user * interface.

*/ inline DescribeCasesRequest& WithDisplayId(const Aws::String& value) { SetDisplayId(value); return *this;} /** *

The ID displayed for a case in the Amazon Web Services Support Center user * interface.

*/ inline DescribeCasesRequest& WithDisplayId(Aws::String&& value) { SetDisplayId(std::move(value)); return *this;} /** *

The ID displayed for a case in the Amazon Web Services Support Center user * interface.

*/ inline DescribeCasesRequest& WithDisplayId(const char* value) { SetDisplayId(value); return *this;} /** *

The start date for a filtered date search on support case communications. * Case communications are available for 12 months after creation.

*/ inline const Aws::String& GetAfterTime() const{ return m_afterTime; } /** *

The start date for a filtered date search on support case communications. * Case communications are available for 12 months after creation.

*/ inline bool AfterTimeHasBeenSet() const { return m_afterTimeHasBeenSet; } /** *

The start date for a filtered date search on support case communications. * Case communications are available for 12 months after creation.

*/ inline void SetAfterTime(const Aws::String& value) { m_afterTimeHasBeenSet = true; m_afterTime = value; } /** *

The start date for a filtered date search on support case communications. * Case communications are available for 12 months after creation.

*/ inline void SetAfterTime(Aws::String&& value) { m_afterTimeHasBeenSet = true; m_afterTime = std::move(value); } /** *

The start date for a filtered date search on support case communications. * Case communications are available for 12 months after creation.

*/ inline void SetAfterTime(const char* value) { m_afterTimeHasBeenSet = true; m_afterTime.assign(value); } /** *

The start date for a filtered date search on support case communications. * Case communications are available for 12 months after creation.

*/ inline DescribeCasesRequest& WithAfterTime(const Aws::String& value) { SetAfterTime(value); return *this;} /** *

The start date for a filtered date search on support case communications. * Case communications are available for 12 months after creation.

*/ inline DescribeCasesRequest& WithAfterTime(Aws::String&& value) { SetAfterTime(std::move(value)); return *this;} /** *

The start date for a filtered date search on support case communications. * Case communications are available for 12 months after creation.

*/ inline DescribeCasesRequest& WithAfterTime(const char* value) { SetAfterTime(value); return *this;} /** *

The end date for a filtered date search on support case communications. Case * communications are available for 12 months after creation.

*/ inline const Aws::String& GetBeforeTime() const{ return m_beforeTime; } /** *

The end date for a filtered date search on support case communications. Case * communications are available for 12 months after creation.

*/ inline bool BeforeTimeHasBeenSet() const { return m_beforeTimeHasBeenSet; } /** *

The end date for a filtered date search on support case communications. Case * communications are available for 12 months after creation.

*/ inline void SetBeforeTime(const Aws::String& value) { m_beforeTimeHasBeenSet = true; m_beforeTime = value; } /** *

The end date for a filtered date search on support case communications. Case * communications are available for 12 months after creation.

*/ inline void SetBeforeTime(Aws::String&& value) { m_beforeTimeHasBeenSet = true; m_beforeTime = std::move(value); } /** *

The end date for a filtered date search on support case communications. Case * communications are available for 12 months after creation.

*/ inline void SetBeforeTime(const char* value) { m_beforeTimeHasBeenSet = true; m_beforeTime.assign(value); } /** *

The end date for a filtered date search on support case communications. Case * communications are available for 12 months after creation.

*/ inline DescribeCasesRequest& WithBeforeTime(const Aws::String& value) { SetBeforeTime(value); return *this;} /** *

The end date for a filtered date search on support case communications. Case * communications are available for 12 months after creation.

*/ inline DescribeCasesRequest& WithBeforeTime(Aws::String&& value) { SetBeforeTime(std::move(value)); return *this;} /** *

The end date for a filtered date search on support case communications. Case * communications are available for 12 months after creation.

*/ inline DescribeCasesRequest& WithBeforeTime(const char* value) { SetBeforeTime(value); return *this;} /** *

Specifies whether to include resolved support cases in the * DescribeCases response. By default, resolved cases aren't * included.

*/ inline bool GetIncludeResolvedCases() const{ return m_includeResolvedCases; } /** *

Specifies whether to include resolved support cases in the * DescribeCases response. By default, resolved cases aren't * included.

*/ inline bool IncludeResolvedCasesHasBeenSet() const { return m_includeResolvedCasesHasBeenSet; } /** *

Specifies whether to include resolved support cases in the * DescribeCases response. By default, resolved cases aren't * included.

*/ inline void SetIncludeResolvedCases(bool value) { m_includeResolvedCasesHasBeenSet = true; m_includeResolvedCases = value; } /** *

Specifies whether to include resolved support cases in the * DescribeCases response. By default, resolved cases aren't * included.

*/ inline DescribeCasesRequest& WithIncludeResolvedCases(bool value) { SetIncludeResolvedCases(value); return *this;} /** *

A resumption point for pagination.

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

A resumption point for pagination.

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

A resumption point for pagination.

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

A resumption point for pagination.

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

A resumption point for pagination.

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

A resumption point for pagination.

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

A resumption point for pagination.

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

A resumption point for pagination.

*/ inline DescribeCasesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The maximum number of results to return before paginating.

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

The maximum number of results to return before paginating.

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

The maximum number of results to return before paginating.

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

The maximum number of results to return before paginating.

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

The language in which Amazon Web Services Support handles the case. Amazon * Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese * ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the * language parameter if you want support in that language.

*/ inline const Aws::String& GetLanguage() const{ return m_language; } /** *

The language in which Amazon Web Services Support handles the case. Amazon * Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese * ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the * language parameter if you want support in that language.

*/ inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; } /** *

The language in which Amazon Web Services Support handles the case. Amazon * Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese * ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the * language parameter if you want support in that language.

*/ inline void SetLanguage(const Aws::String& value) { m_languageHasBeenSet = true; m_language = value; } /** *

The language in which Amazon Web Services Support handles the case. Amazon * Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese * ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the * language parameter if you want support in that language.

*/ inline void SetLanguage(Aws::String&& value) { m_languageHasBeenSet = true; m_language = std::move(value); } /** *

The language in which Amazon Web Services Support handles the case. Amazon * Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese * ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the * language parameter if you want support in that language.

*/ inline void SetLanguage(const char* value) { m_languageHasBeenSet = true; m_language.assign(value); } /** *

The language in which Amazon Web Services Support handles the case. Amazon * Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese * ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the * language parameter if you want support in that language.

*/ inline DescribeCasesRequest& WithLanguage(const Aws::String& value) { SetLanguage(value); return *this;} /** *

The language in which Amazon Web Services Support handles the case. Amazon * Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese * ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the * language parameter if you want support in that language.

*/ inline DescribeCasesRequest& WithLanguage(Aws::String&& value) { SetLanguage(std::move(value)); return *this;} /** *

The language in which Amazon Web Services Support handles the case. Amazon * Web Services Support currently supports Chinese (“zh”), English ("en"), Japanese * ("ja") and Korean (“ko”). You must specify the ISO 639-1 code for the * language parameter if you want support in that language.

*/ inline DescribeCasesRequest& WithLanguage(const char* value) { SetLanguage(value); return *this;} /** *

Specifies whether to include communications in the DescribeCases * response. By default, communications are included.

*/ inline bool GetIncludeCommunications() const{ return m_includeCommunications; } /** *

Specifies whether to include communications in the DescribeCases * response. By default, communications are included.

*/ inline bool IncludeCommunicationsHasBeenSet() const { return m_includeCommunicationsHasBeenSet; } /** *

Specifies whether to include communications in the DescribeCases * response. By default, communications are included.

*/ inline void SetIncludeCommunications(bool value) { m_includeCommunicationsHasBeenSet = true; m_includeCommunications = value; } /** *

Specifies whether to include communications in the DescribeCases * response. By default, communications are included.

*/ inline DescribeCasesRequest& WithIncludeCommunications(bool value) { SetIncludeCommunications(value); return *this;} private: Aws::Vector m_caseIdList; bool m_caseIdListHasBeenSet = false; Aws::String m_displayId; bool m_displayIdHasBeenSet = false; Aws::String m_afterTime; bool m_afterTimeHasBeenSet = false; Aws::String m_beforeTime; bool m_beforeTimeHasBeenSet = false; bool m_includeResolvedCases; bool m_includeResolvedCasesHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_language; bool m_languageHasBeenSet = false; bool m_includeCommunications; bool m_includeCommunicationsHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws