AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
PrincipalOutput.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/qapps/QApps_EXPORTS.h>
9#include <aws/qapps/model/PrincipalOutputUserTypeEnum.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace QApps {
21namespace Model {
22
29 public:
30 AWS_QAPPS_API PrincipalOutput() = default;
33 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetUserId() const { return m_userId; }
40 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
41 template <typename UserIdT = Aws::String>
42 void SetUserId(UserIdT&& value) {
43 m_userIdHasBeenSet = true;
44 m_userId = std::forward<UserIdT>(value);
45 }
46 template <typename UserIdT = Aws::String>
48 SetUserId(std::forward<UserIdT>(value));
49 return *this;
50 }
52
54
57 inline PrincipalOutputUserTypeEnum GetUserType() const { return m_userType; }
58 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
60 m_userTypeHasBeenSet = true;
61 m_userType = value;
62 }
64 SetUserType(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetEmail() const { return m_email; }
74 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
75 template <typename EmailT = Aws::String>
76 void SetEmail(EmailT&& value) {
77 m_emailHasBeenSet = true;
78 m_email = std::forward<EmailT>(value);
79 }
80 template <typename EmailT = Aws::String>
82 SetEmail(std::forward<EmailT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_userId;
88
90
91 Aws::String m_email;
92 bool m_userIdHasBeenSet = false;
93 bool m_userTypeHasBeenSet = false;
94 bool m_emailHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace QApps
99} // namespace Aws
AWS_QAPPS_API PrincipalOutput(Aws::Utils::Json::JsonView jsonValue)
AWS_QAPPS_API PrincipalOutput()=default
void SetUserType(PrincipalOutputUserTypeEnum value)
AWS_QAPPS_API PrincipalOutput & operator=(Aws::Utils::Json::JsonView jsonValue)
PrincipalOutput & WithEmail(EmailT &&value)
PrincipalOutputUserTypeEnum GetUserType() const
PrincipalOutput & WithUserId(UserIdT &&value)
const Aws::String & GetEmail() const
AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const
PrincipalOutput & WithUserType(PrincipalOutputUserTypeEnum value)
const Aws::String & GetUserId() const
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue