AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsAccount.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
35 {
36 public:
37 AWS_MACIE2_API AwsAccount();
38 AWS_MACIE2_API AwsAccount(Aws::Utils::Json::JsonView jsonValue);
40 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetAccountId() const{ return m_accountId; }
48 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
49 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
50 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
51 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
52 inline AwsAccount& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
53 inline AwsAccount& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
54 inline AwsAccount& WithAccountId(const char* value) { SetAccountId(value); return *this;}
56
58
61 inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
62 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
63 inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
64 inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
65 inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
66 inline AwsAccount& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
67 inline AwsAccount& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
68 inline AwsAccount& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
70 private:
71
72 Aws::String m_accountId;
73 bool m_accountIdHasBeenSet = false;
74
75 Aws::String m_principalId;
76 bool m_principalIdHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace Macie2
81} // namespace Aws
const Aws::String & GetPrincipalId() const
Definition AwsAccount.h:61
AwsAccount & WithAccountId(const Aws::String &value)
Definition AwsAccount.h:52
void SetPrincipalId(Aws::String &&value)
Definition AwsAccount.h:64
AwsAccount & WithAccountId(Aws::String &&value)
Definition AwsAccount.h:53
const Aws::String & GetAccountId() const
Definition AwsAccount.h:47
AwsAccount & WithAccountId(const char *value)
Definition AwsAccount.h:54
void SetAccountId(const char *value)
Definition AwsAccount.h:51
void SetAccountId(Aws::String &&value)
Definition AwsAccount.h:50
void SetPrincipalId(const char *value)
Definition AwsAccount.h:65
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetPrincipalId(const Aws::String &value)
Definition AwsAccount.h:63
AwsAccount & WithPrincipalId(const char *value)
Definition AwsAccount.h:68
AwsAccount & WithPrincipalId(const Aws::String &value)
Definition AwsAccount.h:66
AWS_MACIE2_API AwsAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
AwsAccount & WithPrincipalId(Aws::String &&value)
Definition AwsAccount.h:67
AWS_MACIE2_API AwsAccount(Aws::Utils::Json::JsonView jsonValue)
void SetAccountId(const Aws::String &value)
Definition AwsAccount.h:49
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue