AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateInstanceProfileRequest.h
1
6#pragma once
7#include <aws/iam/IAM_EXPORTS.h>
8#include <aws/iam/IAMRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/iam/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace IAM
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_IAM_API CreateInstanceProfileRequest() = 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 "CreateInstanceProfile"; }
33
34 AWS_IAM_API Aws::String SerializePayload() const override;
35
36 protected:
37 AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38
39 public:
40
42
49 inline const Aws::String& GetInstanceProfileName() const { return m_instanceProfileName; }
50 inline bool InstanceProfileNameHasBeenSet() const { return m_instanceProfileNameHasBeenSet; }
51 template<typename InstanceProfileNameT = Aws::String>
52 void SetInstanceProfileName(InstanceProfileNameT&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::forward<InstanceProfileNameT>(value); }
53 template<typename InstanceProfileNameT = Aws::String>
54 CreateInstanceProfileRequest& WithInstanceProfileName(InstanceProfileNameT&& value) { SetInstanceProfileName(std::forward<InstanceProfileNameT>(value)); return *this;}
56
58
70 inline const Aws::String& GetPath() const { return m_path; }
71 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
72 template<typename PathT = Aws::String>
73 void SetPath(PathT&& value) { m_pathHasBeenSet = true; m_path = std::forward<PathT>(value); }
74 template<typename PathT = Aws::String>
75 CreateInstanceProfileRequest& WithPath(PathT&& value) { SetPath(std::forward<PathT>(value)); return *this;}
77
79
88 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template<typename TagsT = Aws::Vector<Tag>>
91 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
92 template<typename TagsT = Aws::Vector<Tag>>
93 CreateInstanceProfileRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
94 template<typename TagsT = Tag>
95 CreateInstanceProfileRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
97 private:
98
99 Aws::String m_instanceProfileName;
100 bool m_instanceProfileNameHasBeenSet = false;
101
102 Aws::String m_path;
103 bool m_pathHasBeenSet = false;
104
105 Aws::Vector<Tag> m_tags;
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace IAM
111} // 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