AWS SDK for C++

AWS SDK for C++ Version 1.11.926

Loading...
Searching...
No Matches
PermissionSet.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SSOAdmin {
21namespace Model {
22
29 public:
30 AWS_SSOADMIN_API PermissionSet() = default;
31 AWS_SSOADMIN_API PermissionSet(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
47 PermissionSet& WithName(NameT&& value) {
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
60 inline const Aws::String& GetPermissionSetArn() const { return m_permissionSetArn; }
61 inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; }
62 template <typename PermissionSetArnT = Aws::String>
63 void SetPermissionSetArn(PermissionSetArnT&& value) {
64 m_permissionSetArnHasBeenSet = true;
65 m_permissionSetArn = std::forward<PermissionSetArnT>(value);
66 }
67 template <typename PermissionSetArnT = Aws::String>
68 PermissionSet& WithPermissionSetArn(PermissionSetArnT&& value) {
69 SetPermissionSetArn(std::forward<PermissionSetArnT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
86 PermissionSet& WithDescription(DescriptionT&& value) {
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
97 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
98 template <typename CreatedDateT = Aws::Utils::DateTime>
99 void SetCreatedDate(CreatedDateT&& value) {
100 m_createdDateHasBeenSet = true;
101 m_createdDate = std::forward<CreatedDateT>(value);
102 }
103 template <typename CreatedDateT = Aws::Utils::DateTime>
104 PermissionSet& WithCreatedDate(CreatedDateT&& value) {
105 SetCreatedDate(std::forward<CreatedDateT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetSessionDuration() const { return m_sessionDuration; }
116 inline bool SessionDurationHasBeenSet() const { return m_sessionDurationHasBeenSet; }
117 template <typename SessionDurationT = Aws::String>
118 void SetSessionDuration(SessionDurationT&& value) {
119 m_sessionDurationHasBeenSet = true;
120 m_sessionDuration = std::forward<SessionDurationT>(value);
121 }
122 template <typename SessionDurationT = Aws::String>
123 PermissionSet& WithSessionDuration(SessionDurationT&& value) {
124 SetSessionDuration(std::forward<SessionDurationT>(value));
125 return *this;
126 }
128
130
134 inline const Aws::String& GetRelayState() const { return m_relayState; }
135 inline bool RelayStateHasBeenSet() const { return m_relayStateHasBeenSet; }
136 template <typename RelayStateT = Aws::String>
137 void SetRelayState(RelayStateT&& value) {
138 m_relayStateHasBeenSet = true;
139 m_relayState = std::forward<RelayStateT>(value);
140 }
141 template <typename RelayStateT = Aws::String>
142 PermissionSet& WithRelayState(RelayStateT&& value) {
143 SetRelayState(std::forward<RelayStateT>(value));
144 return *this;
145 }
147 private:
148 Aws::String m_name;
149
150 Aws::String m_permissionSetArn;
151
152 Aws::String m_description;
153
154 Aws::Utils::DateTime m_createdDate{};
155
156 Aws::String m_sessionDuration;
157
158 Aws::String m_relayState;
159 bool m_nameHasBeenSet = false;
160 bool m_permissionSetArnHasBeenSet = false;
161 bool m_descriptionHasBeenSet = false;
162 bool m_createdDateHasBeenSet = false;
163 bool m_sessionDurationHasBeenSet = false;
164 bool m_relayStateHasBeenSet = false;
165};
166
167} // namespace Model
168} // namespace SSOAdmin
169} // namespace Aws
PermissionSet & WithDescription(DescriptionT &&value)
const Aws::String & GetName() const
const Aws::String & GetSessionDuration() const
void SetRelayState(RelayStateT &&value)
AWS_SSOADMIN_API PermissionSet(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
PermissionSet & WithPermissionSetArn(PermissionSetArnT &&value)
AWS_SSOADMIN_API PermissionSet()=default
AWS_SSOADMIN_API PermissionSet & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPermissionSetArn() const
void SetSessionDuration(SessionDurationT &&value)
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreatedDate(CreatedDateT &&value)
const Aws::Utils::DateTime & GetCreatedDate() const
const Aws::String & GetDescription() const
PermissionSet & WithRelayState(RelayStateT &&value)
PermissionSet & WithName(NameT &&value)
PermissionSet & WithSessionDuration(SessionDurationT &&value)
PermissionSet & WithCreatedDate(CreatedDateT &&value)
const Aws::String & GetRelayState() const
void SetPermissionSetArn(PermissionSetArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue