AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTargetGroupRequest.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/VPCLatticeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/vpc-lattice/model/TargetGroupConfig.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/vpc-lattice/model/TargetGroupType.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace VPCLattice
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_VPCLATTICE_API CreateTargetGroupRequest();
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 "CreateTargetGroup"; }
35
36 AWS_VPCLATTICE_API Aws::String SerializePayload() const override;
37
38
40
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 CreateTargetGroupRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
52 inline CreateTargetGroupRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
53 inline CreateTargetGroupRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
55
57
60 inline const TargetGroupConfig& GetConfig() const{ return m_config; }
61 inline bool ConfigHasBeenSet() const { return m_configHasBeenSet; }
62 inline void SetConfig(const TargetGroupConfig& value) { m_configHasBeenSet = true; m_config = value; }
63 inline void SetConfig(TargetGroupConfig&& value) { m_configHasBeenSet = true; m_config = std::move(value); }
64 inline CreateTargetGroupRequest& WithConfig(const TargetGroupConfig& value) { SetConfig(value); return *this;}
65 inline CreateTargetGroupRequest& WithConfig(TargetGroupConfig&& value) { SetConfig(std::move(value)); return *this;}
67
69
74 inline const Aws::String& GetName() const{ return m_name; }
75 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
76 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
77 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
78 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
79 inline CreateTargetGroupRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
80 inline CreateTargetGroupRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
81 inline CreateTargetGroupRequest& WithName(const char* value) { SetName(value); return *this;}
83
85
88 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
91 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
92 inline CreateTargetGroupRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
93 inline CreateTargetGroupRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
94 inline CreateTargetGroupRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
95 inline CreateTargetGroupRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
96 inline CreateTargetGroupRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
97 inline CreateTargetGroupRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
98 inline CreateTargetGroupRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
99 inline CreateTargetGroupRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
100 inline CreateTargetGroupRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
102
104
107 inline const TargetGroupType& GetType() const{ return m_type; }
108 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
109 inline void SetType(const TargetGroupType& value) { m_typeHasBeenSet = true; m_type = value; }
110 inline void SetType(TargetGroupType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
111 inline CreateTargetGroupRequest& WithType(const TargetGroupType& value) { SetType(value); return *this;}
112 inline CreateTargetGroupRequest& WithType(TargetGroupType&& value) { SetType(std::move(value)); return *this;}
114 private:
115
116 Aws::String m_clientToken;
117 bool m_clientTokenHasBeenSet = false;
118
119 TargetGroupConfig m_config;
120 bool m_configHasBeenSet = false;
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
126 bool m_tagsHasBeenSet = false;
127
128 TargetGroupType m_type;
129 bool m_typeHasBeenSet = false;
130 };
131
132} // namespace Model
133} // namespace VPCLattice
134} // namespace Aws
CreateTargetGroupRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateTargetGroupRequest & AddTags(const char *key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
CreateTargetGroupRequest & AddTags(Aws::String &&key, const char *value)
CreateTargetGroupRequest & WithClientToken(Aws::String &&value)
CreateTargetGroupRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateTargetGroupRequest & AddTags(Aws::String &&key, Aws::String &&value)
CreateTargetGroupRequest & WithType(const TargetGroupType &value)
CreateTargetGroupRequest & WithClientToken(const Aws::String &value)
CreateTargetGroupRequest & WithName(const char *value)
CreateTargetGroupRequest & WithName(Aws::String &&value)
CreateTargetGroupRequest & AddTags(const char *key, const char *value)
CreateTargetGroupRequest & AddTags(Aws::String &&key, const Aws::String &value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateTargetGroupRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_VPCLATTICE_API Aws::String SerializePayload() const override
CreateTargetGroupRequest & WithType(TargetGroupType &&value)
CreateTargetGroupRequest & WithClientToken(const char *value)
CreateTargetGroupRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateTargetGroupRequest & WithConfig(TargetGroupConfig &&value)
CreateTargetGroupRequest & WithConfig(const TargetGroupConfig &value)
CreateTargetGroupRequest & WithName(const Aws::String &value)
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