AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateQueueRequest.h
1
6#pragma once
7#include <aws/pcs/PCS_EXPORTS.h>
8#include <aws/pcs/PCSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/pcs/model/ComputeNodeGroupConfiguration.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace PCS
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_PCS_API CreateQueueRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateQueue"; }
35
36 AWS_PCS_API Aws::String SerializePayload() const override;
37
39
40
42
45 inline const Aws::String& GetClusterIdentifier() const { return m_clusterIdentifier; }
46 inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; }
47 template<typename ClusterIdentifierT = Aws::String>
48 void SetClusterIdentifier(ClusterIdentifierT&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::forward<ClusterIdentifierT>(value); }
49 template<typename ClusterIdentifierT = Aws::String>
50 CreateQueueRequest& WithClusterIdentifier(ClusterIdentifierT&& value) { SetClusterIdentifier(std::forward<ClusterIdentifierT>(value)); return *this;}
52
54
57 inline const Aws::String& GetQueueName() const { return m_queueName; }
58 inline bool QueueNameHasBeenSet() const { return m_queueNameHasBeenSet; }
59 template<typename QueueNameT = Aws::String>
60 void SetQueueName(QueueNameT&& value) { m_queueNameHasBeenSet = true; m_queueName = std::forward<QueueNameT>(value); }
61 template<typename QueueNameT = Aws::String>
62 CreateQueueRequest& WithQueueName(QueueNameT&& value) { SetQueueName(std::forward<QueueNameT>(value)); return *this;}
64
66
70 inline const Aws::Vector<ComputeNodeGroupConfiguration>& GetComputeNodeGroupConfigurations() const { return m_computeNodeGroupConfigurations; }
71 inline bool ComputeNodeGroupConfigurationsHasBeenSet() const { return m_computeNodeGroupConfigurationsHasBeenSet; }
72 template<typename ComputeNodeGroupConfigurationsT = Aws::Vector<ComputeNodeGroupConfiguration>>
73 void SetComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations = std::forward<ComputeNodeGroupConfigurationsT>(value); }
74 template<typename ComputeNodeGroupConfigurationsT = Aws::Vector<ComputeNodeGroupConfiguration>>
75 CreateQueueRequest& WithComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) { SetComputeNodeGroupConfigurations(std::forward<ComputeNodeGroupConfigurationsT>(value)); return *this;}
76 template<typename ComputeNodeGroupConfigurationsT = ComputeNodeGroupConfiguration>
77 CreateQueueRequest& AddComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT&& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations.emplace_back(std::forward<ComputeNodeGroupConfigurationsT>(value)); return *this; }
79
81
90 inline const Aws::String& GetClientToken() const { return m_clientToken; }
91 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
92 template<typename ClientTokenT = Aws::String>
93 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
94 template<typename ClientTokenT = Aws::String>
95 CreateQueueRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
97
99
103 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
104 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
105 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
106 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
107 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
108 CreateQueueRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
109 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
110 CreateQueueRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
111 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
112 }
114 private:
115
116 Aws::String m_clusterIdentifier;
117 bool m_clusterIdentifierHasBeenSet = false;
118
119 Aws::String m_queueName;
120 bool m_queueNameHasBeenSet = false;
121
122 Aws::Vector<ComputeNodeGroupConfiguration> m_computeNodeGroupConfigurations;
123 bool m_computeNodeGroupConfigurationsHasBeenSet = false;
124
126 bool m_clientTokenHasBeenSet = true;
127
129 bool m_tagsHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace PCS
134} // namespace Aws
void SetClusterIdentifier(ClusterIdentifierT &&value)
const Aws::String & GetClientToken() const
const Aws::String & GetQueueName() const
CreateQueueRequest & AddComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
void SetComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
CreateQueueRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::String & GetClusterIdentifier() const
AWS_PCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateQueueRequest & WithClusterIdentifier(ClusterIdentifierT &&value)
CreateQueueRequest & WithComputeNodeGroupConfigurations(ComputeNodeGroupConfigurationsT &&value)
CreateQueueRequest & WithQueueName(QueueNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateQueueRequest & WithClientToken(ClientTokenT &&value)
void SetClientToken(ClientTokenT &&value)
CreateQueueRequest & WithTags(TagsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_PCS_API CreateQueueRequest()=default
void SetQueueName(QueueNameT &&value)
const Aws::Vector< ComputeNodeGroupConfiguration > & GetComputeNodeGroupConfigurations() const
AWS_PCS_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector