AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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#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 CodeCatalyst
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CODECATALYST_API UserIdentity() = default;
37 AWS_CODECATALYST_API UserIdentity(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECATALYST_API UserIdentity& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline UserType GetUserType() const { return m_userType; }
48 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
49 inline void SetUserType(UserType value) { m_userTypeHasBeenSet = true; m_userType = value; }
50 inline UserIdentity& WithUserType(UserType value) { SetUserType(value); return *this;}
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) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
61 template<typename PrincipalIdT = Aws::String>
62 UserIdentity& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
64
66
69 inline const Aws::String& GetUserName() const { return m_userName; }
70 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
71 template<typename UserNameT = Aws::String>
72 void SetUserName(UserNameT&& value) { m_userNameHasBeenSet = true; m_userName = std::forward<UserNameT>(value); }
73 template<typename UserNameT = Aws::String>
74 UserIdentity& WithUserName(UserNameT&& value) { SetUserName(std::forward<UserNameT>(value)); return *this;}
76
78
82 inline const Aws::String& GetAwsAccountId() const { return m_awsAccountId; }
83 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
84 template<typename AwsAccountIdT = Aws::String>
85 void SetAwsAccountId(AwsAccountIdT&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::forward<AwsAccountIdT>(value); }
86 template<typename AwsAccountIdT = Aws::String>
87 UserIdentity& WithAwsAccountId(AwsAccountIdT&& value) { SetAwsAccountId(std::forward<AwsAccountIdT>(value)); return *this;}
89 private:
90
91 UserType m_userType{UserType::NOT_SET};
92 bool m_userTypeHasBeenSet = false;
93
94 Aws::String m_principalId;
95 bool m_principalIdHasBeenSet = false;
96
97 Aws::String m_userName;
98 bool m_userNameHasBeenSet = false;
99
100 Aws::String m_awsAccountId;
101 bool m_awsAccountIdHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace CodeCatalyst
106} // 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