AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
44 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
45 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
46 inline AssociateProfileRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
47 inline AssociateProfileRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
48 inline AssociateProfileRequest& WithName(const char* value) { SetName(value); return *this;}
50
52
55 inline const Aws::String& GetProfileId() const{ return m_profileId; }
56 inline bool ProfileIdHasBeenSet() const { return m_profileIdHasBeenSet; }
57 inline void SetProfileId(const Aws::String& value) { m_profileIdHasBeenSet = true; m_profileId = value; }
58 inline void SetProfileId(Aws::String&& value) { m_profileIdHasBeenSet = true; m_profileId = std::move(value); }
59 inline void SetProfileId(const char* value) { m_profileIdHasBeenSet = true; m_profileId.assign(value); }
60 inline AssociateProfileRequest& WithProfileId(const Aws::String& value) { SetProfileId(value); return *this;}
61 inline AssociateProfileRequest& WithProfileId(Aws::String&& value) { SetProfileId(std::move(value)); return *this;}
62 inline AssociateProfileRequest& WithProfileId(const char* value) { SetProfileId(value); return *this;}
64
66
69 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
70 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
71 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
72 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
73 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
74 inline AssociateProfileRequest& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
75 inline AssociateProfileRequest& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
76 inline AssociateProfileRequest& WithResourceId(const char* value) { SetResourceId(value); return *this;}
78
80
84 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
87 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
88 inline AssociateProfileRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
89 inline AssociateProfileRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
90 inline AssociateProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
91 inline AssociateProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
93 private:
94
95 Aws::String m_name;
96 bool m_nameHasBeenSet = false;
97
98 Aws::String m_profileId;
99 bool m_profileIdHasBeenSet = false;
100
101 Aws::String m_resourceId;
102 bool m_resourceIdHasBeenSet = false;
103
104 Aws::Vector<Tag> m_tags;
105 bool m_tagsHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace Route53Profiles
110} // namespace Aws
AssociateProfileRequest & WithProfileId(Aws::String &&value)
AssociateProfileRequest & WithTags(const Aws::Vector< Tag > &value)
AssociateProfileRequest & WithResourceId(Aws::String &&value)
AssociateProfileRequest & WithName(const Aws::String &value)
AWS_ROUTE53PROFILES_API Aws::String SerializePayload() const override
AssociateProfileRequest & AddTags(const Tag &value)
AssociateProfileRequest & WithName(Aws::String &&value)
AssociateProfileRequest & WithProfileId(const Aws::String &value)
AssociateProfileRequest & WithResourceId(const char *value)
AssociateProfileRequest & WithProfileId(const char *value)
virtual const char * GetServiceRequestName() const override
AssociateProfileRequest & WithResourceId(const Aws::String &value)
AssociateProfileRequest & WithTags(Aws::Vector< Tag > &&value)
AssociateProfileRequest & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector