AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const UserType& GetUserType() const{ return m_userType; }
48 inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
49 inline void SetUserType(const UserType& value) { m_userTypeHasBeenSet = true; m_userType = value; }
50 inline void SetUserType(UserType&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); }
51 inline UserIdentity& WithUserType(const UserType& value) { SetUserType(value); return *this;}
52 inline UserIdentity& WithUserType(UserType&& value) { SetUserType(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
60 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
61 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
62 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
63 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
64 inline UserIdentity& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
65 inline UserIdentity& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
66 inline UserIdentity& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
68
70
73 inline const Aws::String& GetUserName() const{ return m_userName; }
74 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
75 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
76 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
77 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
78 inline UserIdentity& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
79 inline UserIdentity& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
80 inline UserIdentity& WithUserName(const char* value) { SetUserName(value); return *this;}
82
84
88 inline const Aws::String& GetAwsAccountId() const{ return m_awsAccountId; }
89 inline bool AwsAccountIdHasBeenSet() const { return m_awsAccountIdHasBeenSet; }
90 inline void SetAwsAccountId(const Aws::String& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = value; }
91 inline void SetAwsAccountId(Aws::String&& value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId = std::move(value); }
92 inline void SetAwsAccountId(const char* value) { m_awsAccountIdHasBeenSet = true; m_awsAccountId.assign(value); }
93 inline UserIdentity& WithAwsAccountId(const Aws::String& value) { SetAwsAccountId(value); return *this;}
94 inline UserIdentity& WithAwsAccountId(Aws::String&& value) { SetAwsAccountId(std::move(value)); return *this;}
95 inline UserIdentity& WithAwsAccountId(const char* value) { SetAwsAccountId(value); return *this;}
97 private:
98
99 UserType m_userType;
100 bool m_userTypeHasBeenSet = false;
101
102 Aws::String m_principalId;
103 bool m_principalIdHasBeenSet = false;
104
105 Aws::String m_userName;
106 bool m_userNameHasBeenSet = false;
107
108 Aws::String m_awsAccountId;
109 bool m_awsAccountIdHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace CodeCatalyst
114} // namespace Aws
UserIdentity & WithAwsAccountId(const Aws::String &value)
void SetPrincipalId(Aws::String &&value)
UserIdentity & WithPrincipalId(Aws::String &&value)
UserIdentity & WithUserType(UserType &&value)
AWS_CODECATALYST_API UserIdentity(Aws::Utils::Json::JsonView jsonValue)
UserIdentity & WithUserType(const UserType &value)
void SetUserType(const UserType &value)
UserIdentity & WithPrincipalId(const Aws::String &value)
AWS_CODECATALYST_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUserName(const char *value)
UserIdentity & WithUserName(const Aws::String &value)
void SetUserName(const Aws::String &value)
void SetUserName(Aws::String &&value)
const Aws::String & GetPrincipalId() const
UserIdentity & WithAwsAccountId(const char *value)
const Aws::String & GetAwsAccountId() const
UserIdentity & WithUserName(const char *value)
void SetPrincipalId(const Aws::String &value)
UserIdentity & WithUserName(Aws::String &&value)
AWS_CODECATALYST_API UserIdentity & operator=(Aws::Utils::Json::JsonView jsonValue)
UserIdentity & WithAwsAccountId(Aws::String &&value)
const Aws::String & GetUserName() const
void SetAwsAccountId(const char *value)
void SetAwsAccountId(Aws::String &&value)
UserIdentity & WithPrincipalId(const char *value)
const UserType & GetUserType() const
void SetPrincipalId(const char *value)
void SetAwsAccountId(const Aws::String &value)
AWS_CODECATALYST_API UserIdentity()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue