AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Policy.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/securityhub/model/SecurityHubPolicy.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
39 class Policy
40 {
41 public:
42 AWS_SECURITYHUB_API Policy();
43 AWS_SECURITYHUB_API Policy(Aws::Utils::Json::JsonView jsonValue);
44 AWS_SECURITYHUB_API Policy& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const SecurityHubPolicy& GetSecurityHub() const{ return m_securityHub; }
54 inline bool SecurityHubHasBeenSet() const { return m_securityHubHasBeenSet; }
55 inline void SetSecurityHub(const SecurityHubPolicy& value) { m_securityHubHasBeenSet = true; m_securityHub = value; }
56 inline void SetSecurityHub(SecurityHubPolicy&& value) { m_securityHubHasBeenSet = true; m_securityHub = std::move(value); }
57 inline Policy& WithSecurityHub(const SecurityHubPolicy& value) { SetSecurityHub(value); return *this;}
58 inline Policy& WithSecurityHub(SecurityHubPolicy&& value) { SetSecurityHub(std::move(value)); return *this;}
60 private:
61
62 SecurityHubPolicy m_securityHub;
63 bool m_securityHubHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace SecurityHub
68} // namespace Aws
bool SecurityHubHasBeenSet() const
Definition Policy.h:54
Policy & WithSecurityHub(SecurityHubPolicy &&value)
Definition Policy.h:58
Policy & WithSecurityHub(const SecurityHubPolicy &value)
Definition Policy.h:57
void SetSecurityHub(const SecurityHubPolicy &value)
Definition Policy.h:55
AWS_SECURITYHUB_API Policy()
const SecurityHubPolicy & GetSecurityHub() const
Definition Policy.h:53
AWS_SECURITYHUB_API Policy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSecurityHub(SecurityHubPolicy &&value)
Definition Policy.h:56
AWS_SECURITYHUB_API Policy(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue