AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
AwsAccount.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/macie2/Macie2_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Macie2 {
20namespace Model {
21
31 public:
32 AWS_MACIE2_API AwsAccount() = default;
33 AWS_MACIE2_API AwsAccount(Aws::Utils::Json::JsonView jsonValue);
35 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetAccountId() const { return m_accountId; }
42 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
43 template <typename AccountIdT = Aws::String>
44 void SetAccountId(AccountIdT&& value) {
45 m_accountIdHasBeenSet = true;
46 m_accountId = std::forward<AccountIdT>(value);
47 }
48 template <typename AccountIdT = Aws::String>
49 AwsAccount& WithAccountId(AccountIdT&& value) {
50 SetAccountId(std::forward<AccountIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetPrincipalId() const { return m_principalId; }
60 inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
61 template <typename PrincipalIdT = Aws::String>
62 void SetPrincipalId(PrincipalIdT&& value) {
63 m_principalIdHasBeenSet = true;
64 m_principalId = std::forward<PrincipalIdT>(value);
65 }
66 template <typename PrincipalIdT = Aws::String>
67 AwsAccount& WithPrincipalId(PrincipalIdT&& value) {
68 SetPrincipalId(std::forward<PrincipalIdT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_accountId;
74
75 Aws::String m_principalId;
76 bool m_accountIdHasBeenSet = false;
77 bool m_principalIdHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace Macie2
82} // namespace Aws
const Aws::String & GetPrincipalId() const
Definition AwsAccount.h:59
void SetAccountId(AccountIdT &&value)
Definition AwsAccount.h:44
const Aws::String & GetAccountId() const
Definition AwsAccount.h:41
AWS_MACIE2_API AwsAccount()=default
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AwsAccount & WithPrincipalId(PrincipalIdT &&value)
Definition AwsAccount.h:67
AwsAccount & WithAccountId(AccountIdT &&value)
Definition AwsAccount.h:49
AWS_MACIE2_API AwsAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrincipalId(PrincipalIdT &&value)
Definition AwsAccount.h:62
AWS_MACIE2_API AwsAccount(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue