AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
50 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
51 inline Target& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline Target& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline Target& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
60 inline const Aws::String& GetOrganizationalUnitId() const{ return m_organizationalUnitId; }
61 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
62 inline void SetOrganizationalUnitId(const Aws::String& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = value; }
63 inline void SetOrganizationalUnitId(Aws::String&& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = std::move(value); }
64 inline void SetOrganizationalUnitId(const char* value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId.assign(value); }
65 inline Target& WithOrganizationalUnitId(const Aws::String& value) { SetOrganizationalUnitId(value); return *this;}
66 inline Target& WithOrganizationalUnitId(Aws::String&& value) { SetOrganizationalUnitId(std::move(value)); return *this;}
67 inline Target& WithOrganizationalUnitId(const char* value) { SetOrganizationalUnitId(value); return *this;}
69
71
74 inline const Aws::String& GetRootId() const{ return m_rootId; }
75 inline bool RootIdHasBeenSet() const { return m_rootIdHasBeenSet; }
76 inline void SetRootId(const Aws::String& value) { m_rootIdHasBeenSet = true; m_rootId = value; }
77 inline void SetRootId(Aws::String&& value) { m_rootIdHasBeenSet = true; m_rootId = std::move(value); }
78 inline void SetRootId(const char* value) { m_rootIdHasBeenSet = true; m_rootId.assign(value); }
79 inline Target& WithRootId(const Aws::String& value) { SetRootId(value); return *this;}
80 inline Target& WithRootId(Aws::String&& value) { SetRootId(std::move(value)); return *this;}
81 inline Target& WithRootId(const char* value) { SetRootId(value); return *this;}
83 private:
84
85 Aws::String m_accountId;
86 bool m_accountIdHasBeenSet = false;
87
88 Aws::String m_organizationalUnitId;
89 bool m_organizationalUnitIdHasBeenSet = false;
90
91 Aws::String m_rootId;
92 bool m_rootIdHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace SecurityHub
97} // namespace Aws
void SetAccountId(Aws::String &&value)
Definition Target.h:49
Target & WithRootId(const char *value)
Definition Target.h:81
void SetOrganizationalUnitId(const char *value)
Definition Target.h:64
bool RootIdHasBeenSet() const
Definition Target.h:75
Target & WithOrganizationalUnitId(const char *value)
Definition Target.h:67
Target & WithAccountId(const Aws::String &value)
Definition Target.h:51
Target & WithOrganizationalUnitId(Aws::String &&value)
Definition Target.h:66
void SetRootId(const Aws::String &value)
Definition Target.h:76
void SetAccountId(const Aws::String &value)
Definition Target.h:48
Target & WithOrganizationalUnitId(const Aws::String &value)
Definition Target.h:65
AWS_SECURITYHUB_API Target()
void SetRootId(const char *value)
Definition Target.h:78
Target & WithRootId(Aws::String &&value)
Definition Target.h:80
bool AccountIdHasBeenSet() const
Definition Target.h:47
Target & WithAccountId(Aws::String &&value)
Definition Target.h:52
const Aws::String & GetRootId() const
Definition Target.h:74
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccountId(const char *value)
Definition Target.h:50
AWS_SECURITYHUB_API Target(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccountId() const
Definition Target.h:46
Target & WithAccountId(const char *value)
Definition Target.h:53
void SetOrganizationalUnitId(Aws::String &&value)
Definition Target.h:63
AWS_SECURITYHUB_API Target & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOrganizationalUnitId() const
Definition Target.h:60
void SetOrganizationalUnitId(const Aws::String &value)
Definition Target.h:62
void SetRootId(Aws::String &&value)
Definition Target.h:77
Target & WithRootId(const Aws::String &value)
Definition Target.h:79
bool OrganizationalUnitIdHasBeenSet() const
Definition Target.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue