AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Target.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/securityhub/SecurityHub_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityHub {
20namespace Model {
21
29class Target {
30 public:
31 AWS_SECURITYHUB_API Target() = default;
32 AWS_SECURITYHUB_API Target(Aws::Utils::Json::JsonView jsonValue);
33 AWS_SECURITYHUB_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
48 Target& WithAccountId(AccountIdT&& value) {
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetOrganizationalUnitId() const { return m_organizationalUnitId; }
59 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
60 template <typename OrganizationalUnitIdT = Aws::String>
61 void SetOrganizationalUnitId(OrganizationalUnitIdT&& value) {
62 m_organizationalUnitIdHasBeenSet = true;
63 m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value);
64 }
65 template <typename OrganizationalUnitIdT = Aws::String>
66 Target& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) {
67 SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetRootId() const { return m_rootId; }
77 inline bool RootIdHasBeenSet() const { return m_rootIdHasBeenSet; }
78 template <typename RootIdT = Aws::String>
79 void SetRootId(RootIdT&& value) {
80 m_rootIdHasBeenSet = true;
81 m_rootId = std::forward<RootIdT>(value);
82 }
83 template <typename RootIdT = Aws::String>
84 Target& WithRootId(RootIdT&& value) {
85 SetRootId(std::forward<RootIdT>(value));
86 return *this;
87 }
89 private:
90 Aws::String m_accountId;
91
92 Aws::String m_organizationalUnitId;
93
94 Aws::String m_rootId;
95 bool m_accountIdHasBeenSet = false;
96 bool m_organizationalUnitIdHasBeenSet = false;
97 bool m_rootIdHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace SecurityHub
102} // namespace Aws
Target & WithOrganizationalUnitId(OrganizationalUnitIdT &&value)
Definition Target.h:66
bool RootIdHasBeenSet() const
Definition Target.h:77
Target & WithRootId(RootIdT &&value)
Definition Target.h:84
void SetOrganizationalUnitId(OrganizationalUnitIdT &&value)
Definition Target.h:61
bool AccountIdHasBeenSet() const
Definition Target.h:41
const Aws::String & GetRootId() const
Definition Target.h:76
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Target & WithAccountId(AccountIdT &&value)
Definition Target.h:48
AWS_SECURITYHUB_API Target()=default
AWS_SECURITYHUB_API Target(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccountId() const
Definition Target.h:40
void SetAccountId(AccountIdT &&value)
Definition Target.h:43
AWS_SECURITYHUB_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOrganizationalUnitId() const
Definition Target.h:58
void SetRootId(RootIdT &&value)
Definition Target.h:79
bool OrganizationalUnitIdHasBeenSet() const
Definition Target.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue