AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
GeneratedPolicy.h
1
6#pragma once
7#include <aws/accessanalyzer/AccessAnalyzer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AccessAnalyzer {
20namespace Model {
21
28 public:
29 AWS_ACCESSANALYZER_API GeneratedPolicy() = default;
30 AWS_ACCESSANALYZER_API GeneratedPolicy(Aws::Utils::Json::JsonView jsonValue);
31 AWS_ACCESSANALYZER_API GeneratedPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
41 inline const Aws::String& GetPolicy() const { return m_policy; }
42 inline bool PolicyHasBeenSet() const { return m_policyHasBeenSet; }
43 template <typename PolicyT = Aws::String>
44 void SetPolicy(PolicyT&& value) {
45 m_policyHasBeenSet = true;
46 m_policy = std::forward<PolicyT>(value);
47 }
48 template <typename PolicyT = Aws::String>
49 GeneratedPolicy& WithPolicy(PolicyT&& value) {
50 SetPolicy(std::forward<PolicyT>(value));
51 return *this;
52 }
54 private:
55 Aws::String m_policy;
56 bool m_policyHasBeenSet = false;
57};
58
59} // namespace Model
60} // namespace AccessAnalyzer
61} // namespace Aws
GeneratedPolicy & WithPolicy(PolicyT &&value)
AWS_ACCESSANALYZER_API GeneratedPolicy()=default
AWS_ACCESSANALYZER_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ACCESSANALYZER_API GeneratedPolicy(Aws::Utils::Json::JsonView jsonValue)
AWS_ACCESSANALYZER_API GeneratedPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue