AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsIdentity.h
1
6#pragma once
7#include <aws/securitylake/SecurityLake_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 SecurityLake
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYLAKE_API AwsIdentity();
35 AWS_SECURITYLAKE_API AwsIdentity(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYLAKE_API AwsIdentity& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
45 inline const Aws::String& GetExternalId() const{ return m_externalId; }
46 inline bool ExternalIdHasBeenSet() const { return m_externalIdHasBeenSet; }
47 inline void SetExternalId(const Aws::String& value) { m_externalIdHasBeenSet = true; m_externalId = value; }
48 inline void SetExternalId(Aws::String&& value) { m_externalIdHasBeenSet = true; m_externalId = std::move(value); }
49 inline void SetExternalId(const char* value) { m_externalIdHasBeenSet = true; m_externalId.assign(value); }
50 inline AwsIdentity& WithExternalId(const Aws::String& value) { SetExternalId(value); return *this;}
51 inline AwsIdentity& WithExternalId(Aws::String&& value) { SetExternalId(std::move(value)); return *this;}
52 inline AwsIdentity& WithExternalId(const char* value) { SetExternalId(value); return *this;}
54
56
59 inline const Aws::String& GetPrincipal() const{ return m_principal; }
60 inline bool PrincipalHasBeenSet() const { return m_principalHasBeenSet; }
61 inline void SetPrincipal(const Aws::String& value) { m_principalHasBeenSet = true; m_principal = value; }
62 inline void SetPrincipal(Aws::String&& value) { m_principalHasBeenSet = true; m_principal = std::move(value); }
63 inline void SetPrincipal(const char* value) { m_principalHasBeenSet = true; m_principal.assign(value); }
64 inline AwsIdentity& WithPrincipal(const Aws::String& value) { SetPrincipal(value); return *this;}
65 inline AwsIdentity& WithPrincipal(Aws::String&& value) { SetPrincipal(std::move(value)); return *this;}
66 inline AwsIdentity& WithPrincipal(const char* value) { SetPrincipal(value); return *this;}
68 private:
69
70 Aws::String m_externalId;
71 bool m_externalIdHasBeenSet = false;
72
73 Aws::String m_principal;
74 bool m_principalHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SecurityLake
79} // namespace Aws
AWS_SECURITYLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetPrincipal() const
Definition AwsIdentity.h:59
AwsIdentity & WithExternalId(const char *value)
Definition AwsIdentity.h:52
void SetPrincipal(const Aws::String &value)
Definition AwsIdentity.h:61
AwsIdentity & WithExternalId(Aws::String &&value)
Definition AwsIdentity.h:51
void SetPrincipal(const char *value)
Definition AwsIdentity.h:63
AWS_SECURITYLAKE_API AwsIdentity()
void SetExternalId(const char *value)
Definition AwsIdentity.h:49
AwsIdentity & WithPrincipal(Aws::String &&value)
Definition AwsIdentity.h:65
const Aws::String & GetExternalId() const
Definition AwsIdentity.h:45
AwsIdentity & WithPrincipal(const Aws::String &value)
Definition AwsIdentity.h:64
AwsIdentity & WithPrincipal(const char *value)
Definition AwsIdentity.h:66
AWS_SECURITYLAKE_API AwsIdentity & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYLAKE_API AwsIdentity(Aws::Utils::Json::JsonView jsonValue)
AwsIdentity & WithExternalId(const Aws::String &value)
Definition AwsIdentity.h:50
void SetPrincipal(Aws::String &&value)
Definition AwsIdentity.h:62
void SetExternalId(const Aws::String &value)
Definition AwsIdentity.h:47
void SetExternalId(Aws::String &&value)
Definition AwsIdentity.h:48
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue