AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PrincipalOutput.h
1
6#pragma once
7#include <aws/qapps/QApps_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/qapps/model/PrincipalOutputUserTypeEnum.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 QApps
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_QAPPS_API PrincipalOutput() = default;
38 AWS_QAPPS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetUserId() const { return m_userId; }
46 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
47 template<typename UserIdT = Aws::String>
48 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet = true; m_userId = std::forward<UserIdT>(value); }
49 template<typename UserIdT = Aws::String>
50 PrincipalOutput& WithUserId(UserIdT&& value) { SetUserId(std::forward<UserIdT>(value)); return *this;}
52
54
57 inline PrincipalOutputUserTypeEnum GetUserType() const { return m_userType; }
58 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
59 inline void SetUserType(PrincipalOutputUserTypeEnum value) { m_userTypeHasBeenSet = true; m_userType = value; }
62
64
67 inline const Aws::String& GetEmail() const { return m_email; }
68 inline bool EmailHasBeenSet() const { return m_emailHasBeenSet; }
69 template<typename EmailT = Aws::String>
70 void SetEmail(EmailT&& value) { m_emailHasBeenSet = true; m_email = std::forward<EmailT>(value); }
71 template<typename EmailT = Aws::String>
72 PrincipalOutput& WithEmail(EmailT&& value) { SetEmail(std::forward<EmailT>(value)); return *this;}
74 private:
75
76 Aws::String m_userId;
77 bool m_userIdHasBeenSet = false;
78
80 bool m_userTypeHasBeenSet = false;
81
82 Aws::String m_email;
83 bool m_emailHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace QApps
88} // 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