AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
CreateProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/route53profiles/Route53ProfilesRequest.h>
11#include <aws/route53profiles/Route53Profiles_EXPORTS.h>
12#include <aws/route53profiles/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Route53Profiles {
18namespace Model {
19
23 public:
24 AWS_ROUTE53PROFILES_API CreateProfileRequest() = 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 "CreateProfile"; }
31
32 AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override;
33
35
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template <typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) {
47 m_clientTokenHasBeenSet = true;
48 m_clientToken = std::forward<ClientTokenT>(value);
49 }
50 template <typename ClientTokenT = Aws::String>
51 CreateProfileRequest& WithClientToken(ClientTokenT&& value) {
52 SetClientToken(std::forward<ClientTokenT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 template <typename TagsT = Aws::Vector<Tag>>
83 void SetTags(TagsT&& value) {
84 m_tagsHasBeenSet = true;
85 m_tags = std::forward<TagsT>(value);
86 }
87 template <typename TagsT = Aws::Vector<Tag>>
89 SetTags(std::forward<TagsT>(value));
90 return *this;
91 }
92 template <typename TagsT = Tag>
93 CreateProfileRequest& AddTags(TagsT&& value) {
94 m_tagsHasBeenSet = true;
95 m_tags.emplace_back(std::forward<TagsT>(value));
96 return *this;
97 }
99 private:
101
102 Aws::String m_name;
103
104 Aws::Vector<Tag> m_tags;
105 bool m_clientTokenHasBeenSet = true;
106 bool m_nameHasBeenSet = false;
107 bool m_tagsHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace Route53Profiles
112} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateProfileRequest & WithClientToken(ClientTokenT &&value)
CreateProfileRequest & WithName(NameT &&value)
CreateProfileRequest & AddTags(TagsT &&value)
AWS_ROUTE53PROFILES_API CreateProfileRequest()=default
AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override
CreateProfileRequest & WithTags(TagsT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector