AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateClusterRequest.h
1
6#pragma once
7#include <aws/route53-recovery-control-config/Route53RecoveryControlConfig_EXPORTS.h>
8#include <aws/route53-recovery-control-config/Route53RecoveryControlConfigRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/route53-recovery-control-config/model/NetworkType.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Route53RecoveryControlConfig
18{
19namespace Model
20{
21
28 {
29 public:
30 AWS_ROUTE53RECOVERYCONTROLCONFIG_API CreateClusterRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
37
38 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::String SerializePayload() const override;
39
40
42
47 inline const Aws::String& GetClientToken() const { return m_clientToken; }
48 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
49 template<typename ClientTokenT = Aws::String>
50 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
51 template<typename ClientTokenT = Aws::String>
52 CreateClusterRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
54
56
59 inline const Aws::String& GetClusterName() const { return m_clusterName; }
60 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
61 template<typename ClusterNameT = Aws::String>
62 void SetClusterName(ClusterNameT&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::forward<ClusterNameT>(value); }
63 template<typename ClusterNameT = Aws::String>
64 CreateClusterRequest& WithClusterName(ClusterNameT&& value) { SetClusterName(std::forward<ClusterNameT>(value)); return *this;}
66
68
71 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
72 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
73 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
74 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
75 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
76 CreateClusterRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
77 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
78 CreateClusterRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
79 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
80 }
82
84
88 inline NetworkType GetNetworkType() const { return m_networkType; }
89 inline bool NetworkTypeHasBeenSet() const { return m_networkTypeHasBeenSet; }
90 inline void SetNetworkType(NetworkType value) { m_networkTypeHasBeenSet = true; m_networkType = value; }
91 inline CreateClusterRequest& WithNetworkType(NetworkType value) { SetNetworkType(value); return *this;}
93 private:
94
96 bool m_clientTokenHasBeenSet = true;
97
98 Aws::String m_clusterName;
99 bool m_clusterNameHasBeenSet = false;
100
102 bool m_tagsHasBeenSet = false;
103
104 NetworkType m_networkType{NetworkType::NOT_SET};
105 bool m_networkTypeHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Route53RecoveryControlConfig
110} // namespace Aws
CreateClusterRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API CreateClusterRequest()=default
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::String SerializePayload() const override
CreateClusterRequest & WithClientToken(ClientTokenT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateClusterRequest & WithClusterName(ClusterNameT &&value)
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