AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ExternalIdT = Aws::String>
48 void SetExternalId(ExternalIdT&& value) { m_externalIdHasBeenSet = true; m_externalId = std::forward<ExternalIdT>(value); }
49 template<typename ExternalIdT = Aws::String>
50 AwsIdentity& WithExternalId(ExternalIdT&& value) { SetExternalId(std::forward<ExternalIdT>(value)); return *this;}
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) { m_principalHasBeenSet = true; m_principal = std::forward<PrincipalT>(value); }
61 template<typename PrincipalT = Aws::String>
62 AwsIdentity& WithPrincipal(PrincipalT&& value) { SetPrincipal(std::forward<PrincipalT>(value)); return *this;}
64 private:
65
66 Aws::String m_externalId;
67 bool m_externalIdHasBeenSet = false;
68
69 Aws::String m_principal;
70 bool m_principalHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace SecurityLake
75} // 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:48
AwsIdentity & WithExternalId(ExternalIdT &&value)
Definition AwsIdentity.h:50
AwsIdentity & WithPrincipal(PrincipalT &&value)
Definition AwsIdentity.h:62
const Aws::String & GetExternalId() const
Definition AwsIdentity.h:45
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