AWS SDK for C++  1.9.1
AWS SDK for C++
SubmitAttachmentStateChangesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace ECS
17 {
18 namespace 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 
34  Aws::String SerializePayload() const override;
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 
111  inline SubmitAttachmentStateChangesRequest& WithAttachments(const Aws::Vector<AttachmentStateChange>& value) { SetAttachments(value); return *this;}
112 
116  inline SubmitAttachmentStateChangesRequest& WithAttachments(Aws::Vector<AttachmentStateChange>&& value) { SetAttachments(std::move(value)); return *this;}
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;
132 
134  bool m_attachmentsHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace ECS
139 } // namespace Aws
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: SubmitAttachmentStateChangesRequest.h:61
Aws::ECS::Model::SubmitAttachmentStateChangesRequest
Definition: SubmitAttachmentStateChangesRequest.h:24
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: SubmitAttachmentStateChangesRequest.h:55
Aws::ECS::Model::AttachmentStateChange
Definition: AttachmentStateChange.h:33
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSVector.h
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::GetCluster
const Aws::String & GetCluster() const
Definition: SubmitAttachmentStateChangesRequest.h:43
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::WithCluster
SubmitAttachmentStateChangesRequest & WithCluster(Aws::String &&value)
Definition: SubmitAttachmentStateChangesRequest.h:79
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::GetAttachments
const Aws::Vector< AttachmentStateChange > & GetAttachments() const
Definition: SubmitAttachmentStateChangesRequest.h:91
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::WithAttachments
SubmitAttachmentStateChangesRequest & WithAttachments(const Aws::Vector< AttachmentStateChange > &value)
Definition: SubmitAttachmentStateChangesRequest.h:111
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::SetAttachments
void SetAttachments(Aws::Vector< AttachmentStateChange > &&value)
Definition: SubmitAttachmentStateChangesRequest.h:106
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::WithCluster
SubmitAttachmentStateChangesRequest & WithCluster(const char *value)
Definition: SubmitAttachmentStateChangesRequest.h:85
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::AddAttachments
SubmitAttachmentStateChangesRequest & AddAttachments(const AttachmentStateChange &value)
Definition: SubmitAttachmentStateChangesRequest.h:121
AWSString.h
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: SubmitAttachmentStateChangesRequest.h:49
AttachmentStateChange.h
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::SetCluster
void SetCluster(const char *value)
Definition: SubmitAttachmentStateChangesRequest.h:67
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::SubmitAttachmentStateChangesRequest
SubmitAttachmentStateChangesRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::WithAttachments
SubmitAttachmentStateChangesRequest & WithAttachments(Aws::Vector< AttachmentStateChange > &&value)
Definition: SubmitAttachmentStateChangesRequest.h:116
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::AttachmentsHasBeenSet
bool AttachmentsHasBeenSet() const
Definition: SubmitAttachmentStateChangesRequest.h:96
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::SetAttachments
void SetAttachments(const Aws::Vector< AttachmentStateChange > &value)
Definition: SubmitAttachmentStateChangesRequest.h:101
ECS_EXPORTS.h
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::AddAttachments
SubmitAttachmentStateChangesRequest & AddAttachments(AttachmentStateChange &&value)
Definition: SubmitAttachmentStateChangesRequest.h:126
ECSRequest.h
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: SubmitAttachmentStateChangesRequest.h:32
Aws::ECS::Model::SubmitAttachmentStateChangesRequest::WithCluster
SubmitAttachmentStateChangesRequest & WithCluster(const Aws::String &value)
Definition: SubmitAttachmentStateChangesRequest.h:73