AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
SubmitAttachmentStateChangesRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ecs/model/AttachmentStateChange.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ECS
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ECS_API SubmitAttachmentStateChangesRequest() = 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 "SubmitAttachmentStateChanges"; }
33
34 AWS_ECS_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetCluster() const { return m_cluster; }
45 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
46 template<typename ClusterT = Aws::String>
47 void SetCluster(ClusterT&& value) { m_clusterHasBeenSet = true; m_cluster = std::forward<ClusterT>(value); }
48 template<typename ClusterT = Aws::String>
49 SubmitAttachmentStateChangesRequest& WithCluster(ClusterT&& value) { SetCluster(std::forward<ClusterT>(value)); return *this;}
51
53
56 inline const Aws::Vector<AttachmentStateChange>& GetAttachments() const { return m_attachments; }
57 inline bool AttachmentsHasBeenSet() const { return m_attachmentsHasBeenSet; }
58 template<typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
59 void SetAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments = std::forward<AttachmentsT>(value); }
60 template<typename AttachmentsT = Aws::Vector<AttachmentStateChange>>
61 SubmitAttachmentStateChangesRequest& WithAttachments(AttachmentsT&& value) { SetAttachments(std::forward<AttachmentsT>(value)); return *this;}
62 template<typename AttachmentsT = AttachmentStateChange>
63 SubmitAttachmentStateChangesRequest& AddAttachments(AttachmentsT&& value) { m_attachmentsHasBeenSet = true; m_attachments.emplace_back(std::forward<AttachmentsT>(value)); return *this; }
65 private:
66
67 Aws::String m_cluster;
68 bool m_clusterHasBeenSet = false;
69
71 bool m_attachmentsHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace ECS
76} // 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