AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateProfileRequest.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
14namespace Aws
15{
16namespace Route53Profiles
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_ROUTE53PROFILES_API AssociateProfileRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "AssociateProfile"; }
33
34 AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template<typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
45 template<typename NameT = Aws::String>
46 AssociateProfileRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetProfileId() const { return m_profileId; }
54 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
55 template<typename ProfileIdT = Aws::String>
56 void SetProfileId(ProfileIdT&& value) { m_profileIdHasBeenSet = true; m_profileId = std::forward<ProfileIdT>(value); }
57 template<typename ProfileIdT = Aws::String>
58 AssociateProfileRequest& WithProfileId(ProfileIdT&& value) { SetProfileId(std::forward<ProfileIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetResourceId() const { return m_resourceId; }
66 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
67 template<typename ResourceIdT = Aws::String>
68 void SetResourceId(ResourceIdT&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::forward<ResourceIdT>(value); }
69 template<typename ResourceIdT = Aws::String>
70 AssociateProfileRequest& WithResourceId(ResourceIdT&& value) { SetResourceId(std::forward<ResourceIdT>(value)); return *this;}
72
74
78 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
79 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
80 template<typename TagsT = Aws::Vector<Tag>>
81 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
82 template<typename TagsT = Aws::Vector<Tag>>
83 AssociateProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
84 template<typename TagsT = Tag>
85 AssociateProfileRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
87 private:
88
89 Aws::String m_name;
90 bool m_nameHasBeenSet = false;
91
92 Aws::String m_profileId;
93 bool m_profileIdHasBeenSet = false;
94
95 Aws::String m_resourceId;
96 bool m_resourceIdHasBeenSet = false;
97
98 Aws::Vector<Tag> m_tags;
99 bool m_tagsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Route53Profiles
104} // namespace Aws
AssociateProfileRequest & WithName(NameT &&value)
AssociateProfileRequest & WithResourceId(ResourceIdT &&value)
AssociateProfileRequest & WithTags(TagsT &&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