AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UserIdentity.h
1
6#pragma once
7#include <aws/codecatalyst/CodeCatalyst_EXPORTS.h>
8#include <aws/codecatalyst/model/UserType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeCatalyst {
21namespace Model {
22
30 public:
31 AWS_CODECATALYST_API UserIdentity() = default;
32 AWS_CODECATALYST_API UserIdentity(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECATALYST_API UserIdentity& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline UserType GetUserType() const { return m_userType; }
42 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
43 inline void SetUserType(UserType value) {
44 m_userTypeHasBeenSet = true;
45 m_userType = value;
46 }
48 SetUserType(value);
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
58 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
59 template <typename PrincipalIdT = Aws::String>
60 void SetPrincipalId(PrincipalIdT&& value) {
61 m_principalIdHasBeenSet = true;
62 m_principalId = std::forward<PrincipalIdT>(value);
63 }
64 template <typename PrincipalIdT = Aws::String>
65 UserIdentity& WithPrincipalId(PrincipalIdT&& value) {
66 SetPrincipalId(std::forward<PrincipalIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetUserName() const { return m_userName; }
76 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
77 template <typename UserNameT = Aws::String>
78 void SetUserName(UserNameT&& value) {
79 m_userNameHasBeenSet = true;
80 m_userName = std::forward<UserNameT>(value);
81 }
82 template <typename UserNameT = Aws::String>
83 UserIdentity& WithUserName(UserNameT&& value) {
84 SetUserName(std::forward<UserNameT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
95 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
96 template <typename AwsAccountIdT = Aws::String>
97 void SetAwsAccountId(AwsAccountIdT&& value) {
98 m_awsAccountIdHasBeenSet = true;
99 m_awsAccountId = std::forward<AwsAccountIdT>(value);
100 }
101 template <typename AwsAccountIdT = Aws::String>
102 UserIdentity& WithAwsAccountId(AwsAccountIdT&& value) {
103 SetAwsAccountId(std::forward<AwsAccountIdT>(value));
104 return *this;
105 }
107 private:
108 UserType m_userType{UserType::NOT_SET};
109
110 Aws::String m_principalId;
111
112 Aws::String m_userName;
113
114 Aws::String m_awsAccountId;
115 bool m_userTypeHasBeenSet = false;
116 bool m_principalIdHasBeenSet = false;
117 bool m_userNameHasBeenSet = false;
118 bool m_awsAccountIdHasBeenSet = false;
119};
120
121} // namespace Model
122} // namespace CodeCatalyst
123} // namespace Aws
void SetUserName(UserNameT &&value)
AWS_CODECATALYST_API UserIdentity(Aws::Utils::Json::JsonView jsonValue)
UserIdentity & WithAwsAccountId(AwsAccountIdT &&value)
UserIdentity & WithPrincipalId(PrincipalIdT &&value)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPrincipalId() const
void SetAwsAccountId(AwsAccountIdT &&value)
const Aws::String & GetAwsAccountId() const
AWS_CODECATALYST_API UserIdentity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECATALYST_API UserIdentity()=default
const Aws::String & GetUserName() const
UserIdentity & WithUserType(UserType value)
UserIdentity & WithUserName(UserNameT &&value)
void SetPrincipalId(PrincipalIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue