AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename AccountIdT = Aws::String>
50 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
51 template<typename AccountIdT = Aws::String>
52 AwsAccount& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_principalIdHasBeenSet = true; m_principalId = std::forward<PrincipalIdT>(value); }
63 template<typename PrincipalIdT = Aws::String>
64 AwsAccount& WithPrincipalId(PrincipalIdT&& value) { SetPrincipalId(std::forward<PrincipalIdT>(value)); return *this;}
66 private:
67
68 Aws::String m_accountId;
69 bool m_accountIdHasBeenSet = false;
70
71 Aws::String m_principalId;
72 bool m_principalIdHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace Macie2
77} // namespace Aws
const Aws::String & GetPrincipalId() const
Definition AwsAccount.h:59
void SetAccountId(AccountIdT &&value)
Definition AwsAccount.h:50
const Aws::String & GetAccountId() const
Definition AwsAccount.h:47
AWS_MACIE2_API AwsAccount()=default
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
AwsAccount & WithPrincipalId(PrincipalIdT &&value)
Definition AwsAccount.h:64
AwsAccount & WithAccountId(AccountIdT &&value)
Definition AwsAccount.h:52
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