AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
AssociateProfileRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/route53profiles/Route53ProfilesRequest.h>
10#include <aws/route53profiles/Route53Profiles_EXPORTS.h>
11#include <aws/route53profiles/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Route53Profiles {
17namespace Model {
18
22 public:
23 AWS_ROUTE53PROFILES_API AssociateProfileRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "AssociateProfile"; }
30
31 AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetName() const { return m_name; }
38 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
39 template <typename NameT = Aws::String>
40 void SetName(NameT&& value) {
41 m_nameHasBeenSet = true;
42 m_name = std::forward<NameT>(value);
43 }
44 template <typename NameT = Aws::String>
46 SetName(std::forward<NameT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetProfileId() const { return m_profileId; }
56 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
57 template <typename ProfileIdT = Aws::String>
58 void SetProfileId(ProfileIdT&& value) {
59 m_profileIdHasBeenSet = true;
60 m_profileId = std::forward<ProfileIdT>(value);
61 }
62 template <typename ProfileIdT = Aws::String>
64 SetProfileId(std::forward<ProfileIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetResourceId() const { return m_resourceId; }
74 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
75 template <typename ResourceIdT = Aws::String>
76 void SetResourceId(ResourceIdT&& value) {
77 m_resourceIdHasBeenSet = true;
78 m_resourceId = std::forward<ResourceIdT>(value);
79 }
80 template <typename ResourceIdT = Aws::String>
82 SetResourceId(std::forward<ResourceIdT>(value));
83 return *this;
84 }
86
88
92 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 template <typename TagsT = Aws::Vector<Tag>>
95 void SetTags(TagsT&& value) {
96 m_tagsHasBeenSet = true;
97 m_tags = std::forward<TagsT>(value);
98 }
99 template <typename TagsT = Aws::Vector<Tag>>
101 SetTags(std::forward<TagsT>(value));
102 return *this;
103 }
104 template <typename TagsT = Tag>
106 m_tagsHasBeenSet = true;
107 m_tags.emplace_back(std::forward<TagsT>(value));
108 return *this;
109 }
111 private:
112 Aws::String m_name;
113
114 Aws::String m_profileId;
115
116 Aws::String m_resourceId;
117
118 Aws::Vector<Tag> m_tags;
119 bool m_nameHasBeenSet = false;
120 bool m_profileIdHasBeenSet = false;
121 bool m_resourceIdHasBeenSet = false;
122 bool m_tagsHasBeenSet = false;
123};
124
125} // namespace Model
126} // namespace Route53Profiles
127} // namespace Aws
AssociateProfileRequest & WithName(NameT &&value)
AssociateProfileRequest & WithResourceId(ResourceIdT &&value)
AWS_ROUTE53PROFILES_API AssociateProfileRequest()=default
AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override
AssociateProfileRequest & WithProfileId(ProfileIdT &&value)
virtual const char * GetServiceRequestName() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector