/** * 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 AddCommunicationToCaseRequest : public SupportRequest { public: AWS_SUPPORT_API AddCommunicationToCaseRequest(); // 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 "AddCommunicationToCase"; } 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 AddCommunicationToCaseRequest& 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 AddCommunicationToCaseRequest& 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 AddCommunicationToCaseRequest& WithCaseId(const char* value) { SetCaseId(value); return *this;} /** *

The body of an email communication to add to the support case.

*/ inline const Aws::String& GetCommunicationBody() const{ return m_communicationBody; } /** *

The body of an email communication to add to the support case.

*/ inline bool CommunicationBodyHasBeenSet() const { return m_communicationBodyHasBeenSet; } /** *

The body of an email communication to add to the support case.

*/ inline void SetCommunicationBody(const Aws::String& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = value; } /** *

The body of an email communication to add to the support case.

*/ inline void SetCommunicationBody(Aws::String&& value) { m_communicationBodyHasBeenSet = true; m_communicationBody = std::move(value); } /** *

The body of an email communication to add to the support case.

*/ inline void SetCommunicationBody(const char* value) { m_communicationBodyHasBeenSet = true; m_communicationBody.assign(value); } /** *

The body of an email communication to add to the support case.

*/ inline AddCommunicationToCaseRequest& WithCommunicationBody(const Aws::String& value) { SetCommunicationBody(value); return *this;} /** *

The body of an email communication to add to the support case.

*/ inline AddCommunicationToCaseRequest& WithCommunicationBody(Aws::String&& value) { SetCommunicationBody(std::move(value)); return *this;} /** *

The body of an email communication to add to the support case.

*/ inline AddCommunicationToCaseRequest& WithCommunicationBody(const char* value) { SetCommunicationBody(value); return *this;} /** *

The email addresses in the CC line of an email to be added to the support * case.

*/ inline const Aws::Vector& GetCcEmailAddresses() const{ return m_ccEmailAddresses; } /** *

The email addresses in the CC line of an email to be added to the support * case.

*/ inline bool CcEmailAddressesHasBeenSet() const { return m_ccEmailAddressesHasBeenSet; } /** *

The email addresses in the CC line of an email to be added to the support * case.

*/ inline void SetCcEmailAddresses(const Aws::Vector& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = value; } /** *

The email addresses in the CC line of an email to be added to the support * case.

*/ inline void SetCcEmailAddresses(Aws::Vector&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses = std::move(value); } /** *

The email addresses in the CC line of an email to be added to the support * case.

*/ inline AddCommunicationToCaseRequest& WithCcEmailAddresses(const Aws::Vector& value) { SetCcEmailAddresses(value); return *this;} /** *

The email addresses in the CC line of an email to be added to the support * case.

*/ inline AddCommunicationToCaseRequest& WithCcEmailAddresses(Aws::Vector&& value) { SetCcEmailAddresses(std::move(value)); return *this;} /** *

The email addresses in the CC line of an email to be added to the support * case.

*/ inline AddCommunicationToCaseRequest& AddCcEmailAddresses(const Aws::String& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; } /** *

The email addresses in the CC line of an email to be added to the support * case.

*/ inline AddCommunicationToCaseRequest& AddCcEmailAddresses(Aws::String&& value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(std::move(value)); return *this; } /** *

The email addresses in the CC line of an email to be added to the support * case.

*/ inline AddCommunicationToCaseRequest& AddCcEmailAddresses(const char* value) { m_ccEmailAddressesHasBeenSet = true; m_ccEmailAddresses.push_back(value); return *this; } /** *

The ID of a set of one or more attachments for the communication to add to * the case. Create the set by calling AddAttachmentsToSet

*/ inline const Aws::String& GetAttachmentSetId() const{ return m_attachmentSetId; } /** *

The ID of a set of one or more attachments for the communication to add to * the case. Create the set by calling AddAttachmentsToSet

*/ inline bool AttachmentSetIdHasBeenSet() const { return m_attachmentSetIdHasBeenSet; } /** *

The ID of a set of one or more attachments for the communication to add to * the case. Create the set by calling AddAttachmentsToSet

*/ inline void SetAttachmentSetId(const Aws::String& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; } /** *

The ID of a set of one or more attachments for the communication to add to * the case. Create the set by calling AddAttachmentsToSet

*/ inline void SetAttachmentSetId(Aws::String&& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = std::move(value); } /** *

The ID of a set of one or more attachments for the communication to add to * the case. Create the set by calling AddAttachmentsToSet

*/ inline void SetAttachmentSetId(const char* value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId.assign(value); } /** *

The ID of a set of one or more attachments for the communication to add to * the case. Create the set by calling AddAttachmentsToSet

*/ inline AddCommunicationToCaseRequest& WithAttachmentSetId(const Aws::String& value) { SetAttachmentSetId(value); return *this;} /** *

The ID of a set of one or more attachments for the communication to add to * the case. Create the set by calling AddAttachmentsToSet

*/ inline AddCommunicationToCaseRequest& WithAttachmentSetId(Aws::String&& value) { SetAttachmentSetId(std::move(value)); return *this;} /** *

The ID of a set of one or more attachments for the communication to add to * the case. Create the set by calling AddAttachmentsToSet

*/ inline AddCommunicationToCaseRequest& WithAttachmentSetId(const char* value) { SetAttachmentSetId(value); return *this;} private: Aws::String m_caseId; bool m_caseIdHasBeenSet = false; Aws::String m_communicationBody; bool m_communicationBodyHasBeenSet = false; Aws::Vector m_ccEmailAddresses; bool m_ccEmailAddressesHasBeenSet = false; Aws::String m_attachmentSetId; bool m_attachmentSetIdHasBeenSet = false; }; } // namespace Model } // namespace Support } // namespace Aws