AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PermissionSet.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_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 SSOAdmin
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_SSOADMIN_API PermissionSet() = default;
36 AWS_SSOADMIN_API PermissionSet(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetName() const { return m_name; }
46 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
47 template<typename NameT = Aws::String>
48 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
49 template<typename NameT = Aws::String>
50 PermissionSet& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
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) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::forward<PermissionSetArnT>(value); }
64 template<typename PermissionSetArnT = Aws::String>
65 PermissionSet& WithPermissionSetArn(PermissionSetArnT&& value) { SetPermissionSetArn(std::forward<PermissionSetArnT>(value)); return *this;}
67
69
72 inline const Aws::String& GetDescription() const { return m_description; }
73 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
74 template<typename DescriptionT = Aws::String>
75 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
76 template<typename DescriptionT = Aws::String>
77 PermissionSet& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
79
81
84 inline const Aws::Utils::DateTime& GetCreatedDate() const { return m_createdDate; }
85 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
86 template<typename CreatedDateT = Aws::Utils::DateTime>
87 void SetCreatedDate(CreatedDateT&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::forward<CreatedDateT>(value); }
88 template<typename CreatedDateT = Aws::Utils::DateTime>
89 PermissionSet& WithCreatedDate(CreatedDateT&& value) { SetCreatedDate(std::forward<CreatedDateT>(value)); return *this;}
91
93
97 inline const Aws::String& GetSessionDuration() const { return m_sessionDuration; }
98 inline bool SessionDurationHasBeenSet() const { return m_sessionDurationHasBeenSet; }
99 template<typename SessionDurationT = Aws::String>
100 void SetSessionDuration(SessionDurationT&& value) { m_sessionDurationHasBeenSet = true; m_sessionDuration = std::forward<SessionDurationT>(value); }
101 template<typename SessionDurationT = Aws::String>
102 PermissionSet& WithSessionDuration(SessionDurationT&& value) { SetSessionDuration(std::forward<SessionDurationT>(value)); return *this;}
104
106
110 inline const Aws::String& GetRelayState() const { return m_relayState; }
111 inline bool RelayStateHasBeenSet() const { return m_relayStateHasBeenSet; }
112 template<typename RelayStateT = Aws::String>
113 void SetRelayState(RelayStateT&& value) { m_relayStateHasBeenSet = true; m_relayState = std::forward<RelayStateT>(value); }
114 template<typename RelayStateT = Aws::String>
115 PermissionSet& WithRelayState(RelayStateT&& value) { SetRelayState(std::forward<RelayStateT>(value)); return *this;}
117 private:
118
119 Aws::String m_name;
120 bool m_nameHasBeenSet = false;
121
122 Aws::String m_permissionSetArn;
123 bool m_permissionSetArnHasBeenSet = false;
124
125 Aws::String m_description;
126 bool m_descriptionHasBeenSet = false;
127
128 Aws::Utils::DateTime m_createdDate{};
129 bool m_createdDateHasBeenSet = false;
130
131 Aws::String m_sessionDuration;
132 bool m_sessionDurationHasBeenSet = false;
133
134 Aws::String m_relayState;
135 bool m_relayStateHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace SSOAdmin
140} // 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