AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; }
48 inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); }
49 inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); }
50 inline CreateQueueRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;}
51 inline CreateQueueRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;}
52 inline CreateQueueRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;}
54
56
59 inline const Aws::String& GetQueueName() const{ return m_queueName; }
60 inline bool QueueNameHasBeenSet() const { return m_queueNameHasBeenSet; }
61 inline void SetQueueName(const Aws::String& value) { m_queueNameHasBeenSet = true; m_queueName = value; }
62 inline void SetQueueName(Aws::String&& value) { m_queueNameHasBeenSet = true; m_queueName = std::move(value); }
63 inline void SetQueueName(const char* value) { m_queueNameHasBeenSet = true; m_queueName.assign(value); }
64 inline CreateQueueRequest& WithQueueName(const Aws::String& value) { SetQueueName(value); return *this;}
65 inline CreateQueueRequest& WithQueueName(Aws::String&& value) { SetQueueName(std::move(value)); return *this;}
66 inline CreateQueueRequest& WithQueueName(const char* value) { SetQueueName(value); return *this;}
68
70
74 inline const Aws::Vector<ComputeNodeGroupConfiguration>& GetComputeNodeGroupConfigurations() const{ return m_computeNodeGroupConfigurations; }
75 inline bool ComputeNodeGroupConfigurationsHasBeenSet() const { return m_computeNodeGroupConfigurationsHasBeenSet; }
76 inline void SetComputeNodeGroupConfigurations(const Aws::Vector<ComputeNodeGroupConfiguration>& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations = value; }
77 inline void SetComputeNodeGroupConfigurations(Aws::Vector<ComputeNodeGroupConfiguration>&& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations = std::move(value); }
80 inline CreateQueueRequest& AddComputeNodeGroupConfigurations(const ComputeNodeGroupConfiguration& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations.push_back(value); return *this; }
81 inline CreateQueueRequest& AddComputeNodeGroupConfigurations(ComputeNodeGroupConfiguration&& value) { m_computeNodeGroupConfigurationsHasBeenSet = true; m_computeNodeGroupConfigurations.push_back(std::move(value)); return *this; }
83
85
94 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
95 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
96 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
97 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
98 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
99 inline CreateQueueRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
100 inline CreateQueueRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
101 inline CreateQueueRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
103
105
109 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
110 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
111 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
112 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
113 inline CreateQueueRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
114 inline CreateQueueRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
115 inline CreateQueueRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
116 inline CreateQueueRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
117 inline CreateQueueRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
118 inline CreateQueueRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
119 inline CreateQueueRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
120 inline CreateQueueRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
121 inline CreateQueueRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
123 private:
124
125 Aws::String m_clusterIdentifier;
126 bool m_clusterIdentifierHasBeenSet = false;
127
128 Aws::String m_queueName;
129 bool m_queueNameHasBeenSet = false;
130
131 Aws::Vector<ComputeNodeGroupConfiguration> m_computeNodeGroupConfigurations;
132 bool m_computeNodeGroupConfigurationsHasBeenSet = false;
133
134 Aws::String m_clientToken;
135 bool m_clientTokenHasBeenSet = false;
136
138 bool m_tagsHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace PCS
143} // namespace Aws
void SetClusterIdentifier(const Aws::String &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetClientToken(Aws::String &&value)
void SetClusterIdentifier(Aws::String &&value)
const Aws::String & GetClientToken() const
void SetQueueName(Aws::String &&value)
const Aws::String & GetQueueName() const
CreateQueueRequest & WithClientToken(const Aws::String &value)
CreateQueueRequest & WithComputeNodeGroupConfigurations(const Aws::Vector< ComputeNodeGroupConfiguration > &value)
CreateQueueRequest & AddComputeNodeGroupConfigurations(ComputeNodeGroupConfiguration &&value)
CreateQueueRequest & AddTags(Aws::String &&key, const char *value)
void SetComputeNodeGroupConfigurations(const Aws::Vector< ComputeNodeGroupConfiguration > &value)
CreateQueueRequest & WithClusterIdentifier(const Aws::String &value)
void SetComputeNodeGroupConfigurations(Aws::Vector< ComputeNodeGroupConfiguration > &&value)
void SetClientToken(const Aws::String &value)
const Aws::String & GetClusterIdentifier() const
CreateQueueRequest & WithQueueName(Aws::String &&value)
CreateQueueRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_PCS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateQueueRequest & WithClusterIdentifier(const char *value)
CreateQueueRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateQueueRequest & WithComputeNodeGroupConfigurations(Aws::Vector< ComputeNodeGroupConfiguration > &&value)
CreateQueueRequest & WithClientToken(const char *value)
CreateQueueRequest & WithClientToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
CreateQueueRequest & WithQueueName(const char *value)
CreateQueueRequest & WithQueueName(const Aws::String &value)
CreateQueueRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateQueueRequest & WithClusterIdentifier(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateQueueRequest & AddTags(const char *key, Aws::String &&value)
const Aws::Vector< ComputeNodeGroupConfiguration > & GetComputeNodeGroupConfigurations() const
void SetClusterIdentifier(const char *value)
CreateQueueRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateQueueRequest & AddTags(const char *key, const char *value)
CreateQueueRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetQueueName(const Aws::String &value)
CreateQueueRequest & AddTags(const Aws::String &key, Aws::String &&value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
AWS_PCS_API Aws::String SerializePayload() const override
CreateQueueRequest & AddComputeNodeGroupConfigurations(const ComputeNodeGroupConfiguration &value)
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