AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
SubmitAttachmentStateChangesRequest.h
Go to the documentation of this file.
1
6#pragma once
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
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 "SubmitAttachmentStateChanges"; }
33
35
37
38
43 inline const Aws::String& GetCluster() const{ return m_cluster; }
44
49 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
50
55 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
56
61 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
62
67 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
68
73 inline SubmitAttachmentStateChangesRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
74
79 inline SubmitAttachmentStateChangesRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
80
85 inline SubmitAttachmentStateChangesRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
86
87
91 inline const Aws::Vector<AttachmentStateChange>& GetAttachments() const{ return m_attachments; }
92
96 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
97
101 inline void SetAttachments(const Aws::Vector<AttachmentStateChange>& value) { m_attachmentsHasBeenSet = true; m_attachments = value; }
102
106 inline void SetAttachments(Aws::Vector<AttachmentStateChange>&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::move(value); }
107
112
117
121 inline SubmitAttachmentStateChangesRequest& AddAttachments(const AttachmentStateChange& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(value); return *this; }
122
126 inline SubmitAttachmentStateChangesRequest& AddAttachments(AttachmentStateChange&& value) { m_attachmentsHasBeenSet = true; m_attachments.push_back(std::move(value)); return *this; }
127
128 private:
129
130 Aws::String m_cluster;
131 bool m_clusterHasBeenSet = false;
132
134 bool m_attachmentsHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace ECS
139} // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
SubmitAttachmentStateChangesRequest & WithCluster(const char *value)
SubmitAttachmentStateChangesRequest & AddAttachments(AttachmentStateChange &&value)
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetAttachments(Aws::Vector< AttachmentStateChange > &&value)
SubmitAttachmentStateChangesRequest & AddAttachments(const AttachmentStateChange &value)
SubmitAttachmentStateChangesRequest & WithAttachments(const Aws::Vector< AttachmentStateChange > &value)
const Aws::Vector< AttachmentStateChange > & GetAttachments() const
SubmitAttachmentStateChangesRequest & WithCluster(Aws::String &&value)
void SetAttachments(const Aws::Vector< AttachmentStateChange > &value)
AWS_ECS_API Aws::String SerializePayload() const override
SubmitAttachmentStateChangesRequest & WithCluster(const Aws::String &value)
SubmitAttachmentStateChangesRequest & WithAttachments(Aws::Vector< AttachmentStateChange > &&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