AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateProfileRequest.h
1
6#pragma once
7#include <aws/route53profiles/Route53Profiles_EXPORTS.h>
8#include <aws/route53profiles/Route53ProfilesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/route53profiles/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Route53Profiles
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ROUTE53PROFILES_API CreateProfileRequest() = 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 "CreateProfile"; }
34
35 AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override;
36
37
39
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 CreateProfileRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
54
56
59 inline const Aws::String& GetName() const { return m_name; }
60 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
61 template<typename NameT = Aws::String>
62 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
63 template<typename NameT = Aws::String>
64 CreateProfileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
66
68
72 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 template<typename TagsT = Aws::Vector<Tag>>
75 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
76 template<typename TagsT = Aws::Vector<Tag>>
77 CreateProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
78 template<typename TagsT = Tag>
79 CreateProfileRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
81 private:
82
84 bool m_clientTokenHasBeenSet = true;
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88
89 Aws::Vector<Tag> m_tags;
90 bool m_tagsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace Route53Profiles
95} // 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