AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RegisterClusterRequest.h
1
6#pragma once
7#include <aws/eks/EKS_EXPORTS.h>
8#include <aws/eks/EKSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/eks/model/ConnectorConfigRequest.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace EKS
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_EKS_API RegisterClusterRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "RegisterCluster"; }
34
35 AWS_EKS_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template<typename NameT = Aws::String>
45 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
46 template<typename NameT = Aws::String>
47 RegisterClusterRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
49
51
55 inline const ConnectorConfigRequest& GetConnectorConfig() const { return m_connectorConfig; }
56 inline bool ConnectorConfigHasBeenSet() const { return m_connectorConfigHasBeenSet; }
57 template<typename ConnectorConfigT = ConnectorConfigRequest>
58 void SetConnectorConfig(ConnectorConfigT&& value) { m_connectorConfigHasBeenSet = true; m_connectorConfig = std::forward<ConnectorConfigT>(value); }
59 template<typename ConnectorConfigT = ConnectorConfigRequest>
60 RegisterClusterRequest& WithConnectorConfig(ConnectorConfigT&& value) { SetConnectorConfig(std::forward<ConnectorConfigT>(value)); return *this;}
62
64
68 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
69 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
70 template<typename ClientRequestTokenT = Aws::String>
71 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
72 template<typename ClientRequestTokenT = Aws::String>
73 RegisterClusterRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
75
77
82 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
83 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
84 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
85 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
86 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
87 RegisterClusterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
88 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
89 RegisterClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
90 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
91 }
93 private:
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 ConnectorConfigRequest m_connectorConfig;
99 bool m_connectorConfigHasBeenSet = false;
100
101 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
102 bool m_clientRequestTokenHasBeenSet = true;
103
105 bool m_tagsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace EKS
110} // 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