AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccountAssignmentOperationStatus.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sso-admin/model/PrincipalType.h>
11#include <aws/sso-admin/model/StatusValues.h>
12#include <aws/sso-admin/model/TargetType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SSOAdmin
26{
27namespace Model
28{
29
37 {
38 public:
42 AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
50 inline bool CreatedDateHasBeenSet() const { return m_createdDateHasBeenSet; }
51 inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
52 inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
54 inline AccountAssignmentOperationStatus& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
56
58
62 inline const Aws::String& GetFailureReason() const{ return m_failureReason; }
63 inline bool FailureReasonHasBeenSet() const { return m_failureReasonHasBeenSet; }
64 inline void SetFailureReason(const Aws::String& value) { m_failureReasonHasBeenSet = true; m_failureReason = value; }
65 inline void SetFailureReason(Aws::String&& value) { m_failureReasonHasBeenSet = true; m_failureReason = std::move(value); }
66 inline void SetFailureReason(const char* value) { m_failureReasonHasBeenSet = true; m_failureReason.assign(value); }
68 inline AccountAssignmentOperationStatus& WithFailureReason(Aws::String&& value) { SetFailureReason(std::move(value)); return *this;}
69 inline AccountAssignmentOperationStatus& WithFailureReason(const char* value) { SetFailureReason(value); return *this;}
71
73
79 inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; }
80 inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; }
81 inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; }
82 inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); }
83 inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); }
85 inline AccountAssignmentOperationStatus& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;}
86 inline AccountAssignmentOperationStatus& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;}
88
90
97 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
98 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
99 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
100 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
101 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
102 inline AccountAssignmentOperationStatus& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
103 inline AccountAssignmentOperationStatus& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
104 inline AccountAssignmentOperationStatus& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
106
108
111 inline const PrincipalType& GetPrincipalType() const{ return m_principalType; }
112 inline bool PrincipalTypeHasBeenSet() const { return m_principalTypeHasBeenSet; }
113 inline void SetPrincipalType(const PrincipalType& value) { m_principalTypeHasBeenSet = true; m_principalType = value; }
114 inline void SetPrincipalType(PrincipalType&& value) { m_principalTypeHasBeenSet = true; m_principalType = std::move(value); }
116 inline AccountAssignmentOperationStatus& WithPrincipalType(PrincipalType&& value) { SetPrincipalType(std::move(value)); return *this;}
118
120
124 inline const Aws::String& GetRequestId() const{ return m_requestId; }
125 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
126 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
127 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
128 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
129 inline AccountAssignmentOperationStatus& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
130 inline AccountAssignmentOperationStatus& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
131 inline AccountAssignmentOperationStatus& WithRequestId(const char* value) { SetRequestId(value); return *this;}
133
135
138 inline const StatusValues& GetStatus() const{ return m_status; }
139 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
140 inline void SetStatus(const StatusValues& value) { m_statusHasBeenSet = true; m_status = value; }
141 inline void SetStatus(StatusValues&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
142 inline AccountAssignmentOperationStatus& WithStatus(const StatusValues& value) { SetStatus(value); return *this;}
143 inline AccountAssignmentOperationStatus& WithStatus(StatusValues&& value) { SetStatus(std::move(value)); return *this;}
145
147
151 inline const Aws::String& GetTargetId() const{ return m_targetId; }
152 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
153 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
154 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
155 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
156 inline AccountAssignmentOperationStatus& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
157 inline AccountAssignmentOperationStatus& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
158 inline AccountAssignmentOperationStatus& WithTargetId(const char* value) { SetTargetId(value); return *this;}
160
162
165 inline const TargetType& GetTargetType() const{ return m_targetType; }
166 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
167 inline void SetTargetType(const TargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
168 inline void SetTargetType(TargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
169 inline AccountAssignmentOperationStatus& WithTargetType(const TargetType& value) { SetTargetType(value); return *this;}
170 inline AccountAssignmentOperationStatus& WithTargetType(TargetType&& value) { SetTargetType(std::move(value)); return *this;}
172 private:
173
174 Aws::Utils::DateTime m_createdDate;
175 bool m_createdDateHasBeenSet = false;
176
177 Aws::String m_failureReason;
178 bool m_failureReasonHasBeenSet = false;
179
180 Aws::String m_permissionSetArn;
181 bool m_permissionSetArnHasBeenSet = false;
182
183 Aws::String m_principalId;
184 bool m_principalIdHasBeenSet = false;
185
186 PrincipalType m_principalType;
187 bool m_principalTypeHasBeenSet = false;
188
189 Aws::String m_requestId;
190 bool m_requestIdHasBeenSet = false;
191
192 StatusValues m_status;
193 bool m_statusHasBeenSet = false;
194
195 Aws::String m_targetId;
196 bool m_targetIdHasBeenSet = false;
197
198 TargetType m_targetType;
199 bool m_targetTypeHasBeenSet = false;
200 };
201
202} // namespace Model
203} // namespace SSOAdmin
204} // namespace Aws
AccountAssignmentOperationStatus & WithFailureReason(const char *value)
AccountAssignmentOperationStatus & WithTargetId(Aws::String &&value)
AccountAssignmentOperationStatus & WithPrincipalId(const char *value)
AccountAssignmentOperationStatus & WithTargetType(TargetType &&value)
AccountAssignmentOperationStatus & WithTargetId(const Aws::String &value)
AccountAssignmentOperationStatus & WithTargetId(const char *value)
AccountAssignmentOperationStatus & WithPrincipalType(PrincipalType &&value)
AWS_SSOADMIN_API Aws::Utils::Json::JsonValue Jsonize() const
AccountAssignmentOperationStatus & WithPrincipalId(const Aws::String &value)
AccountAssignmentOperationStatus & WithPermissionSetArn(const Aws::String &value)
AWS_SSOADMIN_API AccountAssignmentOperationStatus & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountAssignmentOperationStatus & WithCreatedDate(const Aws::Utils::DateTime &value)
AccountAssignmentOperationStatus & WithPermissionSetArn(const char *value)
AWS_SSOADMIN_API AccountAssignmentOperationStatus(Aws::Utils::Json::JsonView jsonValue)
AccountAssignmentOperationStatus & WithRequestId(const Aws::String &value)
AccountAssignmentOperationStatus & WithPrincipalId(Aws::String &&value)
AccountAssignmentOperationStatus & WithTargetType(const TargetType &value)
AccountAssignmentOperationStatus & WithFailureReason(const Aws::String &value)
AccountAssignmentOperationStatus & WithStatus(StatusValues &&value)
AccountAssignmentOperationStatus & WithFailureReason(Aws::String &&value)
AccountAssignmentOperationStatus & WithStatus(const StatusValues &value)
AccountAssignmentOperationStatus & WithRequestId(Aws::String &&value)
AccountAssignmentOperationStatus & WithPrincipalType(const PrincipalType &value)
AccountAssignmentOperationStatus & WithCreatedDate(Aws::Utils::DateTime &&value)
AccountAssignmentOperationStatus & WithRequestId(const char *value)
AccountAssignmentOperationStatus & WithPermissionSetArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue