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

The support case ID requested or returned in the call. The case ID is an * alphanumeric string formatted as shown in this example: * case-12345678910-2013-c4c1d2bf33c5cf47

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

The support case ID requested or returned in the call. The case ID is an * alphanumeric string formatted as shown in this example: * case-12345678910-2013-c4c1d2bf33c5cf47

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

The support case ID requested or returned in the call. The case ID is an * alphanumeric string formatted as shown in this example: * case-12345678910-2013-c4c1d2bf33c5cf47

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

The support case ID requested or returned in the call. The case ID is an * alphanumeric string formatted as shown in this example: * case-12345678910-2013-c4c1d2bf33c5cf47

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

The support case ID requested or returned in the call. The case ID is an * alphanumeric string formatted as shown in this example: * case-12345678910-2013-c4c1d2bf33c5cf47

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

The support case ID requested or returned in the call. The case ID is an * alphanumeric string formatted as shown in this example: * case-12345678910-2013-c4c1d2bf33c5cf47

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

The support case ID requested or returned in the call. The case ID is an * alphanumeric string formatted as shown in this example: * case-12345678910-2013-c4c1d2bf33c5cf47

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

The support case ID requested or returned in the call. The case ID is an * alphanumeric string formatted as shown in this example: * case-12345678910-2013-c4c1d2bf33c5cf47

*/ inline DescribeCommunicationsRequest& WithCaseId(const char* value) { SetCaseId(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 DescribeCommunicationsRequest& 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 DescribeCommunicationsRequest& 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 DescribeCommunicationsRequest& WithBeforeTime(const char* value) { SetBeforeTime(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 DescribeCommunicationsRequest& 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 DescribeCommunicationsRequest& 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 DescribeCommunicationsRequest& WithAfterTime(const char* value) { SetAfterTime(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 DescribeCommunicationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

A resumption point for pagination.

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

A resumption point for pagination.

*/ inline DescribeCommunicationsRequest& 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 DescribeCommunicationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} private: Aws::String m_caseId; bool m_caseIdHasBeenSet = false; Aws::String m_beforeTime; bool m_beforeTimeHasBeenSet = false; Aws::String m_afterTime; bool m_afterTimeHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws