AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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 <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Route53RecoveryControlConfig
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_ROUTE53RECOVERYCONTROLCONFIG_API CreateClusterRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateCluster"; }
36
37 AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::String SerializePayload() const override;
38
39
41
46 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
49 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
50 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
51 inline CreateClusterRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline CreateClusterRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline CreateClusterRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
60 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
61 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
62 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
63 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
64 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
65 inline CreateClusterRequest& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
66 inline CreateClusterRequest& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
67 inline CreateClusterRequest& WithClusterName(const char* value) { SetClusterName(value); return *this;}
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
75 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
76 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
77 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
78 inline CreateClusterRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
79 inline CreateClusterRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
80 inline CreateClusterRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
81 inline CreateClusterRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
82 inline CreateClusterRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
83 inline CreateClusterRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
84 inline CreateClusterRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
85 inline CreateClusterRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
86 inline CreateClusterRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
88 private:
89
90 Aws::String m_clientToken;
91 bool m_clientTokenHasBeenSet = false;
92
93 Aws::String m_clusterName;
94 bool m_clusterNameHasBeenSet = false;
95
97 bool m_tagsHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace Route53RecoveryControlConfig
102} // namespace Aws
CreateClusterRequest & AddTags(Aws::String &&key, const char *value)
CreateClusterRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateClusterRequest & WithClientToken(Aws::String &&value)
CreateClusterRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateClusterRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API CreateClusterRequest()
CreateClusterRequest & AddTags(const char *key, Aws::String &&value)
CreateClusterRequest & AddTags(const Aws::String &key, const Aws::String &value)
AWS_ROUTE53RECOVERYCONTROLCONFIG_API Aws::String SerializePayload() const override
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateClusterRequest & WithClusterName(Aws::String &&value)
CreateClusterRequest & WithClientToken(const Aws::String &value)
CreateClusterRequest & WithClusterName(const Aws::String &value)
CreateClusterRequest & AddTags(const char *key, const char *value)
CreateClusterRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateClusterRequest & AddTags(const Aws::String &key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
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