AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RoleAliasDescription.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOT_API RoleAliasDescription() = default;
39
40
42
45 inline const Aws::String& GetRoleAlias() const { return m_roleAlias; }
46 inline bool RoleAliasHasBeenSet() const { return m_roleAliasHasBeenSet; }
47 template<typename RoleAliasT = Aws::String>
48 void SetRoleAlias(RoleAliasT&& value) { m_roleAliasHasBeenSet = true; m_roleAlias = std::forward<RoleAliasT>(value); }
49 template<typename RoleAliasT = Aws::String>
50 RoleAliasDescription& WithRoleAlias(RoleAliasT&& value) { SetRoleAlias(std::forward<RoleAliasT>(value)); return *this;}
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) { m_roleAliasArnHasBeenSet = true; m_roleAliasArn = std::forward<RoleAliasArnT>(value); }
61 template<typename RoleAliasArnT = Aws::String>
62 RoleAliasDescription& WithRoleAliasArn(RoleAliasArnT&& value) { SetRoleAliasArn(std::forward<RoleAliasArnT>(value)); return *this;}
64
66
69 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
70 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
71 template<typename RoleArnT = Aws::String>
72 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
73 template<typename RoleArnT = Aws::String>
74 RoleAliasDescription& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
76
78
81 inline const Aws::String& GetOwner() const { return m_owner; }
82 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
83 template<typename OwnerT = Aws::String>
84 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
85 template<typename OwnerT = Aws::String>
86 RoleAliasDescription& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
88
90
93 inline int GetCredentialDurationSeconds() const { return m_credentialDurationSeconds; }
94 inline bool CredentialDurationSecondsHasBeenSet() const { return m_credentialDurationSecondsHasBeenSet; }
95 inline void SetCredentialDurationSeconds(int value) { m_credentialDurationSecondsHasBeenSet = true; m_credentialDurationSeconds = value; }
98
100
103 inline const Aws::Utils::DateTime& GetCreationDate() const { return m_creationDate; }
104 inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
105 template<typename CreationDateT = Aws::Utils::DateTime>
106 void SetCreationDate(CreationDateT&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::forward<CreationDateT>(value); }
107 template<typename CreationDateT = Aws::Utils::DateTime>
108 RoleAliasDescription& WithCreationDate(CreationDateT&& value) { SetCreationDate(std::forward<CreationDateT>(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
116 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
117 template<typename LastModifiedDateT = Aws::Utils::DateTime>
118 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
119 template<typename LastModifiedDateT = Aws::Utils::DateTime>
120 RoleAliasDescription& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
122 private:
123
124 Aws::String m_roleAlias;
125 bool m_roleAliasHasBeenSet = false;
126
127 Aws::String m_roleAliasArn;
128 bool m_roleAliasArnHasBeenSet = false;
129
130 Aws::String m_roleArn;
131 bool m_roleArnHasBeenSet = false;
132
133 Aws::String m_owner;
134 bool m_ownerHasBeenSet = false;
135
136 int m_credentialDurationSeconds{0};
137 bool m_credentialDurationSecondsHasBeenSet = false;
138
139 Aws::Utils::DateTime m_creationDate{};
140 bool m_creationDateHasBeenSet = false;
141
142 Aws::Utils::DateTime m_lastModifiedDate{};
143 bool m_lastModifiedDateHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace IoT
148} // 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