AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
Policy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoT_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoT {
20namespace Model {
21
27class Policy {
28 public:
29 AWS_IOT_API Policy() = default;
30 AWS_IOT_API Policy(Aws::Utils::Json::JsonView jsonValue);
33
35
38 inline const Aws::String& GetPolicyName() const { return m_policyName; }
39 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
40 template <typename PolicyNameT = Aws::String>
41 void SetPolicyName(PolicyNameT&& value) {
42 m_policyNameHasBeenSet = true;
43 m_policyName = std::forward<PolicyNameT>(value);
44 }
45 template <typename PolicyNameT = Aws::String>
46 Policy& WithPolicyName(PolicyNameT&& value) {
47 SetPolicyName(std::forward<PolicyNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetPolicyArn() const { return m_policyArn; }
57 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
58 template <typename PolicyArnT = Aws::String>
59 void SetPolicyArn(PolicyArnT&& value) {
60 m_policyArnHasBeenSet = true;
61 m_policyArn = std::forward<PolicyArnT>(value);
62 }
63 template <typename PolicyArnT = Aws::String>
64 Policy& WithPolicyArn(PolicyArnT&& value) {
65 SetPolicyArn(std::forward<PolicyArnT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_policyName;
71
72 Aws::String m_policyArn;
73 bool m_policyNameHasBeenSet = false;
74 bool m_policyArnHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace IoT
79} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool PolicyArnHasBeenSet() const
Definition Policy.h:57
AWS_IOT_API Policy()=default
Policy & WithPolicyName(PolicyNameT &&value)
Definition Policy.h:46
const Aws::String & GetPolicyName() const
Definition Policy.h:38
void SetPolicyName(PolicyNameT &&value)
Definition Policy.h:41
AWS_IOT_API Policy & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PolicyNameHasBeenSet() const
Definition Policy.h:39
Policy & WithPolicyArn(PolicyArnT &&value)
Definition Policy.h:64
const Aws::String & GetPolicyArn() const
Definition Policy.h:56
void SetPolicyArn(PolicyArnT &&value)
Definition Policy.h:59
AWS_IOT_API Policy(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue