AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
SubmitAttachmentStateChangesRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECSRequest.h>
10#include <aws/ecs/ECS_EXPORTS.h>
11#include <aws/ecs/model/AttachmentStateChange.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ECS {
17namespace Model {
18
22 public:
23 AWS_ECS_API SubmitAttachmentStateChangesRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "SubmitAttachmentStateChanges"; }
30
31 AWS_ECS_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetCluster() const { return m_cluster; }
41 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
42 template <typename ClusterT = Aws::String>
43 void SetCluster(ClusterT&& value) {
44 m_clusterHasBeenSet = true;
45 m_cluster = std::forward<ClusterT>(value);
46 }
47 template <typename ClusterT = Aws::String>
49 SetCluster(std::forward<ClusterT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<AttachmentStateChange>& GetAttachments() const { return m_attachments; }
59 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
60 template <typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
61 void SetAttachments(AttachmentsT&& value) {
62 m_attachmentsHasBeenSet = true;
63 m_attachments = std::forward<AttachmentsT>(value);
64 }
65 template <typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
67 SetAttachments(std::forward<AttachmentsT>(value));
68 return *this;
69 }
70 template <typename AttachmentsT = AttachmentStateChange>
72 m_attachmentsHasBeenSet = true;
73 m_attachments.emplace_back(std::forward<AttachmentsT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_cluster;
79
81 bool m_clusterHasBeenSet = false;
82 bool m_attachmentsHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace ECS
87} // namespace Aws
SubmitAttachmentStateChangesRequest & WithAttachments(AttachmentsT &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
SubmitAttachmentStateChangesRequest & AddAttachments(AttachmentsT &&value)
const Aws::Vector< AttachmentStateChange > & GetAttachments() const
SubmitAttachmentStateChangesRequest & WithCluster(ClusterT &&value)
AWS_ECS_API Aws::String SerializePayload() const override
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