AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateInstanceProfileRequest.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/iam/IAMRequest.h>
10#include <aws/iam/IAM_EXPORTS.h>
11#include <aws/iam/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IAM {
17namespace Model {
18
22 public:
23 AWS_IAM_API CreateInstanceProfileRequest() = 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 "CreateInstanceProfile"; }
30
31 AWS_IAM_API Aws::String SerializePayload() const override;
32
33 protected:
34 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
35
36 public:
38
45 inline const Aws::String& GetInstanceProfileName() const { return m_instanceProfileName; }
46 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
47 template <typename InstanceProfileNameT = Aws::String>
48 void SetInstanceProfileName(InstanceProfileNameT&& value) {
49 m_instanceProfileNameHasBeenSet = true;
50 m_instanceProfileName = std::forward<InstanceProfileNameT>(value);
51 }
52 template <typename InstanceProfileNameT = Aws::String>
54 SetInstanceProfileName(std::forward<InstanceProfileNameT>(value));
55 return *this;
56 }
58
60
72 inline const Aws::String& GetPath() const { return m_path; }
73 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
74 template <typename PathT = Aws::String>
75 void SetPath(PathT&& value) {
76 m_pathHasBeenSet = true;
77 m_path = std::forward<PathT>(value);
78 }
79 template <typename PathT = Aws::String>
81 SetPath(std::forward<PathT>(value));
82 return *this;
83 }
85
87
96 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
97 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
98 template <typename TagsT = Aws::Vector<Tag>>
99 void SetTags(TagsT&& value) {
100 m_tagsHasBeenSet = true;
101 m_tags = std::forward<TagsT>(value);
102 }
103 template <typename TagsT = Aws::Vector<Tag>>
105 SetTags(std::forward<TagsT>(value));
106 return *this;
107 }
108 template <typename TagsT = Tag>
110 m_tagsHasBeenSet = true;
111 m_tags.emplace_back(std::forward<TagsT>(value));
112 return *this;
113 }
115 private:
116 Aws::String m_instanceProfileName;
117
118 Aws::String m_path;
119
120 Aws::Vector<Tag> m_tags;
121 bool m_instanceProfileNameHasBeenSet = false;
122 bool m_pathHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace IAM
128} // namespace Aws
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateInstanceProfileRequest & WithPath(PathT &&value)
AWS_IAM_API CreateInstanceProfileRequest()=default
CreateInstanceProfileRequest & WithInstanceProfileName(InstanceProfileNameT &&value)
CreateInstanceProfileRequest & AddTags(TagsT &&value)
void SetInstanceProfileName(InstanceProfileNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_IAM_API Aws::String SerializePayload() const override
CreateInstanceProfileRequest & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector