AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Target.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
22{
23namespace Model
24{
25
33 class Target
34 {
35 public:
36 AWS_SECURITYHUB_API Target() = default;
37 AWS_SECURITYHUB_API Target(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SECURITYHUB_API Target& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountId() const { return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 template<typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
50 template<typename AccountIdT = Aws::String>
51 Target& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = std::forward<OrganizationalUnitIdT>(value); }
62 template<typename OrganizationalUnitIdT = Aws::String>
63 Target& WithOrganizationalUnitId(OrganizationalUnitIdT&& value) { SetOrganizationalUnitId(std::forward<OrganizationalUnitIdT>(value)); return *this;}
65
67
70 inline const Aws::String& GetRootId() const { return m_rootId; }
71 inline bool RootIdHasBeenSet() const { return m_rootIdHasBeenSet; }
72 template<typename RootIdT = Aws::String>
73 void SetRootId(RootIdT&& value) { m_rootIdHasBeenSet = true; m_rootId = std::forward<RootIdT>(value); }
74 template<typename RootIdT = Aws::String>
75 Target& WithRootId(RootIdT&& value) { SetRootId(std::forward<RootIdT>(value)); return *this;}
77 private:
78
79 Aws::String m_accountId;
80 bool m_accountIdHasBeenSet = false;
81
82 Aws::String m_organizationalUnitId;
83 bool m_organizationalUnitIdHasBeenSet = false;
84
85 Aws::String m_rootId;
86 bool m_rootIdHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace SecurityHub
91} // namespace Aws
Target & WithOrganizationalUnitId(OrganizationalUnitIdT &&value)
Definition Target.h:63
bool RootIdHasBeenSet() const
Definition Target.h:71
Target & WithRootId(RootIdT &&value)
Definition Target.h:75
void SetOrganizationalUnitId(OrganizationalUnitIdT &&value)
Definition Target.h:61
bool AccountIdHasBeenSet() const
Definition Target.h:47
const Aws::String & GetRootId() const
Definition Target.h:70
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Target & WithAccountId(AccountIdT &&value)
Definition Target.h:51
AWS_SECURITYHUB_API Target()=default
AWS_SECURITYHUB_API Target(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccountId() const
Definition Target.h:46
void SetAccountId(AccountIdT &&value)
Definition Target.h:49
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:73
bool OrganizationalUnitIdHasBeenSet() const
Definition Target.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue