AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
AwsIdentity.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securitylake/SecurityLake_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityLake {
20namespace Model {
21
28 public:
29 AWS_SECURITYLAKE_API AwsIdentity() = default;
30 AWS_SECURITYLAKE_API AwsIdentity(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYLAKE_API AwsIdentity& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
39 inline const Aws::String& GetExternalId() const { return m_externalId; }
40 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
41 template <typename ExternalIdT = Aws::String>
42 void SetExternalId(ExternalIdT&& value) {
43 m_externalIdHasBeenSet = true;
44 m_externalId = std::forward<ExternalIdT>(value);
45 }
46 template <typename ExternalIdT = Aws::String>
47 AwsIdentity& WithExternalId(ExternalIdT&& value) {
48 SetExternalId(std::forward<ExternalIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetPrincipal() const { return m_principal; }
58 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
59 template <typename PrincipalT = Aws::String>
60 void SetPrincipal(PrincipalT&& value) {
61 m_principalHasBeenSet = true;
62 m_principal = std::forward<PrincipalT>(value);
63 }
64 template <typename PrincipalT = Aws::String>
65 AwsIdentity& WithPrincipal(PrincipalT&& value) {
66 SetPrincipal(std::forward<PrincipalT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_externalId;
72
73 Aws::String m_principal;
74 bool m_externalIdHasBeenSet = false;
75 bool m_principalHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace SecurityLake
80} // namespace Aws
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPrincipal() const
Definition AwsIdentity.h:57
AWS_SECURITYLAKE_API AwsIdentity()=default
void SetExternalId(ExternalIdT &&value)
Definition AwsIdentity.h:42
AwsIdentity & WithExternalId(ExternalIdT &&value)
Definition AwsIdentity.h:47
AwsIdentity & WithPrincipal(PrincipalT &&value)
Definition AwsIdentity.h:65
const Aws::String & GetExternalId() const
Definition AwsIdentity.h:39
AWS_SECURITYLAKE_API AwsIdentity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYLAKE_API AwsIdentity(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipal(PrincipalT &&value)
Definition AwsIdentity.h:60
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue