AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
SessionIssuer.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Macie2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_MACIE2_API SessionIssuer();
36 AWS_MACIE2_API SessionIssuer(Aws::Utils::Json::JsonView jsonValue);
38 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetAccountId() const{ return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
50 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
51 inline SessionIssuer& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline SessionIssuer& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline SessionIssuer& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
61 inline const Aws::String& GetArn() const{ return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
64 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
65 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
66 inline SessionIssuer& WithArn(const Aws::String& value) { SetArn(value); return *this;}
67 inline SessionIssuer& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
68 inline SessionIssuer& WithArn(const char* value) { SetArn(value); return *this;}
70
72
76 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
77 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
78 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
79 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
80 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
81 inline SessionIssuer& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
82 inline SessionIssuer& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
83 inline SessionIssuer& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
85
87
91 inline const Aws::String& GetType() const{ return m_type; }
92 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
93 inline void SetType(const Aws::String& value) { m_typeHasBeenSet = true; m_type = value; }
94 inline void SetType(Aws::String&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
95 inline void SetType(const char* value) { m_typeHasBeenSet = true; m_type.assign(value); }
96 inline SessionIssuer& WithType(const Aws::String& value) { SetType(value); return *this;}
97 inline SessionIssuer& WithType(Aws::String&& value) { SetType(std::move(value)); return *this;}
98 inline SessionIssuer& WithType(const char* value) { SetType(value); return *this;}
100
102
107 inline const Aws::String& GetUserName() const{ return m_userName; }
108 inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
109 inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
110 inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
111 inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
112 inline SessionIssuer& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
113 inline SessionIssuer& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
114 inline SessionIssuer& WithUserName(const char* value) { SetUserName(value); return *this;}
116 private:
117
118 Aws::String m_accountId;
119 bool m_accountIdHasBeenSet = false;
120
121 Aws::String m_arn;
122 bool m_arnHasBeenSet = false;
123
124 Aws::String m_principalId;
125 bool m_principalIdHasBeenSet = false;
126
127 Aws::String m_type;
128 bool m_typeHasBeenSet = false;
129
130 Aws::String m_userName;
131 bool m_userNameHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace Macie2
136} // namespace Aws
void SetPrincipalId(Aws::String &&value)
void SetArn(const Aws::String &value)
SessionIssuer & WithUserName(Aws::String &&value)
const Aws::String & GetAccountId() const
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetUserName() const
void SetType(Aws::String &&value)
void SetAccountId(Aws::String &&value)
void SetAccountId(const Aws::String &value)
SessionIssuer & WithAccountId(const char *value)
SessionIssuer & WithType(const Aws::String &value)
SessionIssuer & WithAccountId(const Aws::String &value)
SessionIssuer & WithAccountId(Aws::String &&value)
SessionIssuer & WithArn(const Aws::String &value)
const Aws::String & GetType() const
void SetType(const Aws::String &value)
SessionIssuer & WithUserName(const Aws::String &value)
void SetUserName(const Aws::String &value)
void SetPrincipalId(const Aws::String &value)
void SetType(const char *value)
SessionIssuer & WithType(Aws::String &&value)
void SetUserName(Aws::String &&value)
AWS_MACIE2_API SessionIssuer(Aws::Utils::Json::JsonView jsonValue)
SessionIssuer & WithType(const char *value)
SessionIssuer & WithPrincipalId(Aws::String &&value)
void SetPrincipalId(const char *value)
const Aws::String & GetPrincipalId() const
SessionIssuer & WithArn(Aws::String &&value)
const Aws::String & GetArn() const
AWS_MACIE2_API SessionIssuer & operator=(Aws::Utils::Json::JsonView jsonValue)
SessionIssuer & WithUserName(const char *value)
void SetArn(const char *value)
SessionIssuer & WithPrincipalId(const Aws::String &value)
void SetArn(Aws::String &&value)
void SetUserName(const char *value)
SessionIssuer & WithPrincipalId(const char *value)
SessionIssuer & WithArn(const char *value)
void SetAccountId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue