AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RegisterClusterRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eks/EKSRequest.h>
11#include <aws/eks/EKS_EXPORTS.h>
12#include <aws/eks/model/ConnectorConfigRequest.h>
13
14#include <utility>
15
16namespace Aws {
17namespace EKS {
18namespace Model {
19
23 public:
24 AWS_EKS_API RegisterClusterRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "RegisterCluster"; }
31
32 AWS_EKS_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetName() const { return m_name; }
39 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
40 template <typename NameT = Aws::String>
41 void SetName(NameT&& value) {
42 m_nameHasBeenSet = true;
43 m_name = std::forward<NameT>(value);
44 }
45 template <typename NameT = Aws::String>
47 SetName(std::forward<NameT>(value));
48 return *this;
49 }
51
53
57 inline const ConnectorConfigRequest& GetConnectorConfig() const { return m_connectorConfig; }
58 inline bool ConnectorConfigHasBeenSet() const { return m_connectorConfigHasBeenSet; }
59 template <typename ConnectorConfigT = ConnectorConfigRequest>
60 void SetConnectorConfig(ConnectorConfigT&& value) {
61 m_connectorConfigHasBeenSet = true;
62 m_connectorConfig = std::forward<ConnectorConfigT>(value);
63 }
64 template <typename ConnectorConfigT = ConnectorConfigRequest>
65 RegisterClusterRequest& WithConnectorConfig(ConnectorConfigT&& value) {
66 SetConnectorConfig(std::forward<ConnectorConfigT>(value));
67 return *this;
68 }
70
72
76 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
77 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
78 template <typename ClientRequestTokenT = Aws::String>
79 void SetClientRequestToken(ClientRequestTokenT&& value) {
80 m_clientRequestTokenHasBeenSet = true;
81 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
82 }
83 template <typename ClientRequestTokenT = Aws::String>
84 RegisterClusterRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
85 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
86 return *this;
87 }
89
91
96 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
99 void SetTags(TagsT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags = std::forward<TagsT>(value);
102 }
103 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
105 SetTags(std::forward<TagsT>(value));
106 return *this;
107 }
108 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
109 RegisterClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
110 m_tagsHasBeenSet = true;
111 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_name;
117
118 ConnectorConfigRequest m_connectorConfig;
119
120 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
121
123 bool m_nameHasBeenSet = false;
124 bool m_connectorConfigHasBeenSet = false;
125 bool m_clientRequestTokenHasBeenSet = true;
126 bool m_tagsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace EKS
131} // namespace Aws
RegisterClusterRequest & WithTags(TagsT &&value)
const ConnectorConfigRequest & GetConnectorConfig() const
RegisterClusterRequest & WithConnectorConfig(ConnectorConfigT &&value)
void SetConnectorConfig(ConnectorConfigT &&value)
RegisterClusterRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_EKS_API RegisterClusterRequest()=default
const Aws::String & GetClientRequestToken() const
AWS_EKS_API Aws::String SerializePayload() const override
void SetClientRequestToken(ClientRequestTokenT &&value)
RegisterClusterRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
RegisterClusterRequest & WithClientRequestToken(ClientRequestTokenT &&value)
virtual const char * GetServiceRequestName() const override
static Aws::Utils::UUID PseudoRandomUUID()
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