AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAttachmentSetId(const Aws::String& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = value; }
49 inline void SetAttachmentSetId(Aws::String&& value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId = std::move(value); }
50 inline void SetAttachmentSetId(const char* value) { m_attachmentSetIdHasBeenSet = true; m_attachmentSetId.assign(value); }
52 inline AddAttachmentsToSetRequest& WithAttachmentSetId(Aws::String&& value) { SetAttachmentSetId(std::move(value)); return *this;}
53 inline AddAttachmentsToSetRequest& WithAttachmentSetId(const char* value) { SetAttachmentSetId(value); return *this;}
55
57
66 inline const Aws::Vector<Attachment>& GetAttachments() const{ return m_attachments; }
67 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
68 inline void SetAttachments(const Aws::Vector<Attachment>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
69 inline void SetAttachments(Aws::Vector<Attachment>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
71 inline AddAttachmentsToSetRequest& WithAttachments(Aws::Vector<Attachment>&& value) { SetAttachments(std::move(value)); return *this;}
72 inline AddAttachmentsToSetRequest& AddAttachments(const Attachment& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
73 inline AddAttachmentsToSetRequest& AddAttachments(Attachment&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
75 private:
76
77 Aws::String m_attachmentSetId;
78 bool m_attachmentSetIdHasBeenSet = false;
79
80 Aws::Vector<Attachment> m_attachments;
81 bool m_attachmentsHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace Support
86} // namespace Aws
AddAttachmentsToSetRequest & AddAttachments(const Attachment &value)
const Aws::Vector< Attachment > & GetAttachments() const
AddAttachmentsToSetRequest & WithAttachmentSetId(Aws::String &&value)
AddAttachmentsToSetRequest & WithAttachmentSetId(const char *value)
AWS_SUPPORT_API Aws::String SerializePayload() const override
void SetAttachments(const Aws::Vector< Attachment > &value)
AddAttachmentsToSetRequest & AddAttachments(Attachment &&value)
AddAttachmentsToSetRequest & WithAttachments(const Aws::Vector< Attachment > &value)
AWS_SUPPORT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAttachments(Aws::Vector< Attachment > &&value)
AddAttachmentsToSetRequest & WithAttachments(Aws::Vector< Attachment > &&value)
virtual const char * GetServiceRequestName() const override
AddAttachmentsToSetRequest & WithAttachmentSetId(const Aws::String &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