AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateRoleAliasRequest.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/iot/IoTRequest.h>
10#include <aws/iot/IoT_EXPORTS.h>
11#include <aws/iot/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoT {
17namespace Model {
18
22 public:
23 AWS_IOT_API CreateRoleAliasRequest() = 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 "CreateRoleAlias"; }
30
31 AWS_IOT_API Aws::String SerializePayload() const override;
32
34
38 inline const Aws::String& GetRoleAlias() const { return m_roleAlias; }
39 inline bool RoleAliasHasBeenSet() const { return m_roleAliasHasBeenSet; }
40 template <typename RoleAliasT = Aws::String>
41 void SetRoleAlias(RoleAliasT&& value) {
42 m_roleAliasHasBeenSet = true;
43 m_roleAlias = std::forward<RoleAliasT>(value);
44 }
45 template <typename RoleAliasT = Aws::String>
47 SetRoleAlias(std::forward<RoleAliasT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
57 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
58 template <typename RoleArnT = Aws::String>
59 void SetRoleArn(RoleArnT&& value) {
60 m_roleArnHasBeenSet = true;
61 m_roleArn = std::forward<RoleArnT>(value);
62 }
63 template <typename RoleArnT = Aws::String>
65 SetRoleArn(std::forward<RoleArnT>(value));
66 return *this;
67 }
69
71
76 inline int GetCredentialDurationSeconds() const { return m_credentialDurationSeconds; }
77 inline bool CredentialDurationSecondsHasBeenSet() const { return m_credentialDurationSecondsHasBeenSet; }
78 inline void SetCredentialDurationSeconds(int value) {
79 m_credentialDurationSecondsHasBeenSet = true;
80 m_credentialDurationSeconds = value;
81 }
84 return *this;
85 }
87
89
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_roleAlias;
117
118 Aws::String m_roleArn;
119
120 int m_credentialDurationSeconds{0};
121
122 Aws::Vector<Tag> m_tags;
123 bool m_roleAliasHasBeenSet = false;
124 bool m_roleArnHasBeenSet = false;
125 bool m_credentialDurationSecondsHasBeenSet = false;
126 bool m_tagsHasBeenSet = false;
127};
128
129} // namespace Model
130} // namespace IoT
131} // namespace Aws
CreateRoleAliasRequest & WithRoleAlias(RoleAliasT &&value)
CreateRoleAliasRequest & AddTags(TagsT &&value)
CreateRoleAliasRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Tag > & GetTags() const
AWS_IOT_API CreateRoleAliasRequest()=default
CreateRoleAliasRequest & WithCredentialDurationSeconds(int value)
AWS_IOT_API Aws::String SerializePayload() const override
CreateRoleAliasRequest & WithRoleArn(RoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector