AWS SDK for C++

AWS SDK for C++ Version 1.11.768

Loading...
Searching...
No Matches
RoleAliasDescription.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
29 public:
30 AWS_IOT_API RoleAliasDescription() = default;
34
36
39 inline const Aws::String& GetRoleAlias() const { return m_roleAlias; }
40 inline bool RoleAliasHasBeenSet() const { return m_roleAliasHasBeenSet; }
41 template <typename RoleAliasT = Aws::String>
42 void SetRoleAlias(RoleAliasT&& value) {
43 m_roleAliasHasBeenSet = true;
44 m_roleAlias = std::forward<RoleAliasT>(value);
45 }
46 template <typename RoleAliasT = Aws::String>
47 RoleAliasDescription& WithRoleAlias(RoleAliasT&& value) {
48 SetRoleAlias(std::forward<RoleAliasT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRoleAliasArn() const { return m_roleAliasArn; }
58 inline bool RoleAliasArnHasBeenSet() const { return m_roleAliasArnHasBeenSet; }
59 template <typename RoleAliasArnT = Aws::String>
60 void SetRoleAliasArn(RoleAliasArnT&& value) {
61 m_roleAliasArnHasBeenSet = true;
62 m_roleAliasArn = std::forward<RoleAliasArnT>(value);
63 }
64 template <typename RoleAliasArnT = Aws::String>
65 RoleAliasDescription& WithRoleAliasArn(RoleAliasArnT&& value) {
66 SetRoleAliasArn(std::forward<RoleAliasArnT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
76 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
77 template <typename RoleArnT = Aws::String>
78 void SetRoleArn(RoleArnT&& value) {
79 m_roleArnHasBeenSet = true;
80 m_roleArn = std::forward<RoleArnT>(value);
81 }
82 template <typename RoleArnT = Aws::String>
83 RoleAliasDescription& WithRoleArn(RoleArnT&& value) {
84 SetRoleArn(std::forward<RoleArnT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetOwner() const { return m_owner; }
94 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
95 template <typename OwnerT = Aws::String>
96 void SetOwner(OwnerT&& value) {
97 m_ownerHasBeenSet = true;
98 m_owner = std::forward<OwnerT>(value);
99 }
100 template <typename OwnerT = Aws::String>
102 SetOwner(std::forward<OwnerT>(value));
103 return *this;
104 }
106
108
111 inline int GetCredentialDurationSeconds() const { return m_credentialDurationSeconds; }
112 inline bool CredentialDurationSecondsHasBeenSet() const { return m_credentialDurationSecondsHasBeenSet; }
113 inline void SetCredentialDurationSeconds(int value) {
114 m_credentialDurationSecondsHasBeenSet = true;
115 m_credentialDurationSeconds = value;
116 }
119 return *this;
120 }
122
124
127 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
128 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
129 template <typename CreationDateT = Aws::Utils::DateTime>
130 void SetCreationDate(CreationDateT&& value) {
131 m_creationDateHasBeenSet = true;
132 m_creationDate = std::forward<CreationDateT>(value);
133 }
134 template <typename CreationDateT = Aws::Utils::DateTime>
135 RoleAliasDescription& WithCreationDate(CreationDateT&& value) {
136 SetCreationDate(std::forward<CreationDateT>(value));
137 return *this;
138 }
140
142
145 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
146 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
147 template <typename LastModifiedDateT = Aws::Utils::DateTime>
148 void SetLastModifiedDate(LastModifiedDateT&& value) {
149 m_lastModifiedDateHasBeenSet = true;
150 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
151 }
152 template <typename LastModifiedDateT = Aws::Utils::DateTime>
153 RoleAliasDescription& WithLastModifiedDate(LastModifiedDateT&& value) {
154 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
155 return *this;
156 }
158 private:
159 Aws::String m_roleAlias;
160
161 Aws::String m_roleAliasArn;
162
163 Aws::String m_roleArn;
164
165 Aws::String m_owner;
166
167 int m_credentialDurationSeconds{0};
168
169 Aws::Utils::DateTime m_creationDate{};
170
171 Aws::Utils::DateTime m_lastModifiedDate{};
172 bool m_roleAliasHasBeenSet = false;
173 bool m_roleAliasArnHasBeenSet = false;
174 bool m_roleArnHasBeenSet = false;
175 bool m_ownerHasBeenSet = false;
176 bool m_credentialDurationSecondsHasBeenSet = false;
177 bool m_creationDateHasBeenSet = false;
178 bool m_lastModifiedDateHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace IoT
183} // namespace Aws
AWS_IOT_API RoleAliasDescription & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreationDate(CreationDateT &&value)
RoleAliasDescription & WithCredentialDurationSeconds(int value)
const Aws::String & GetRoleAliasArn() const
RoleAliasDescription & WithRoleAliasArn(RoleAliasArnT &&value)
const Aws::Utils::DateTime & GetLastModifiedDate() const
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
void SetRoleAliasArn(RoleAliasArnT &&value)
const Aws::String & GetRoleAlias() const
AWS_IOT_API RoleAliasDescription(Aws::Utils::Json::JsonView jsonValue)
RoleAliasDescription & WithRoleArn(RoleArnT &&value)
const Aws::Utils::DateTime & GetCreationDate() const
RoleAliasDescription & WithOwner(OwnerT &&value)
RoleAliasDescription & WithCreationDate(CreationDateT &&value)
RoleAliasDescription & WithLastModifiedDate(LastModifiedDateT &&value)
RoleAliasDescription & WithRoleAlias(RoleAliasT &&value)
AWS_IOT_API RoleAliasDescription()=default
void SetLastModifiedDate(LastModifiedDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue