AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetInstanceProfileName(const Aws::String& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = value; }
52 inline void SetInstanceProfileName(Aws::String&& value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName = std::move(value); }
53 inline void SetInstanceProfileName(const char* value) { m_instanceProfileNameHasBeenSet = true; m_instanceProfileName.assign(value); }
56 inline CreateInstanceProfileRequest& WithInstanceProfileName(const char* value) { SetInstanceProfileName(value); return *this;}
58
60
72 inline const Aws::String& GetPath() const{ return m_path; }
73 inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
74 inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; }
75 inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
76 inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); }
77 inline CreateInstanceProfileRequest& WithPath(const Aws::String& value) { SetPath(value); return *this;}
78 inline CreateInstanceProfileRequest& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;}
79 inline CreateInstanceProfileRequest& WithPath(const char* value) { SetPath(value); return *this;}
81
83
92 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateInstanceProfileRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
97 inline CreateInstanceProfileRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateInstanceProfileRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
99 inline CreateInstanceProfileRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_instanceProfileName;
104 bool m_instanceProfileNameHasBeenSet = false;
105
106 Aws::String m_path;
107 bool m_pathHasBeenSet = false;
108
109 Aws::Vector<Tag> m_tags;
110 bool m_tagsHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace IAM
115} // namespace Aws
CreateInstanceProfileRequest & WithInstanceProfileName(Aws::String &&value)
CreateInstanceProfileRequest & WithPath(const char *value)
CreateInstanceProfileRequest & WithInstanceProfileName(const Aws::String &value)
CreateInstanceProfileRequest & WithInstanceProfileName(const char *value)
CreateInstanceProfileRequest & WithTags(const Aws::Vector< Tag > &value)
CreateInstanceProfileRequest & WithPath(Aws::String &&value)
CreateInstanceProfileRequest & AddTags(const Tag &value)
CreateInstanceProfileRequest & WithTags(Aws::Vector< Tag > &&value)
CreateInstanceProfileRequest & AddTags(Tag &&value)
AWS_IAM_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
virtual const char * GetServiceRequestName() const override
CreateInstanceProfileRequest & WithPath(const Aws::String &value)
AWS_IAM_API Aws::String SerializePayload() const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector