AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AddAttachmentsToSetRequest.h
1
6#pragma once
7#include <aws/support/Support_EXPORTS.h>
8#include <aws/support/SupportRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/support/model/Attachment.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Support
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SUPPORT_API AddAttachmentsToSetRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AddAttachmentsToSet"; }
33
34 AWS_SUPPORT_API Aws::String SerializePayload() const override;
35
37
38
40
46 inline const Aws::String& GetAttachmentSetId() const { return m_attachmentSetId; }
47 inline bool AttachmentSetIdHasBeenSet() const { return m_attachmentSetIdHasBeenSet; }
48 template<typename AttachmentSetIdT = Aws::String>
49 void SetAttachmentSetId(AttachmentSetIdT&& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = std::forward<AttachmentSetIdT>(value); }
50 template<typename AttachmentSetIdT = Aws::String>
51 AddAttachmentsToSetRequest& WithAttachmentSetId(AttachmentSetIdT&& value) { SetAttachmentSetId(std::forward<AttachmentSetIdT>(value)); return *this;}
53
55
64 inline const Aws::Vector<Attachment>& GetAttachments() const { return m_attachments; }
65 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
66 template<typename AttachmentsT = Aws::Vector<Attachment>>
67 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
68 template<typename AttachmentsT = Aws::Vector<Attachment>>
69 AddAttachmentsToSetRequest& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
70 template<typename AttachmentsT = Attachment>
71 AddAttachmentsToSetRequest& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
73 private:
74
75 Aws::String m_attachmentSetId;
76 bool m_attachmentSetIdHasBeenSet = false;
77
78 Aws::Vector<Attachment> m_attachments;
79 bool m_attachmentsHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace Support
84} // namespace Aws
const Aws::Vector< Attachment > & GetAttachments() const
AddAttachmentsToSetRequest & AddAttachments(AttachmentsT &&value)
AWS_SUPPORT_API Aws::String SerializePayload() const override
AWS_SUPPORT_API AddAttachmentsToSetRequest()=default
AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AddAttachmentsToSetRequest & WithAttachmentSetId(AttachmentSetIdT &&value)
virtual const char * GetServiceRequestName() const override
AddAttachmentsToSetRequest & WithAttachments(AttachmentsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector