AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Policy.h
1
6#pragma once
7#include <aws/iot/IoT_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 IoT
22{
23namespace Model
24{
25
31 class Policy
32 {
33 public:
34 AWS_IOT_API Policy() = default;
35 AWS_IOT_API Policy(Aws::Utils::Json::JsonView jsonValue);
38
39
41
44 inline const Aws::String& GetPolicyName() const { return m_policyName; }
45 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
46 template<typename PolicyNameT = Aws::String>
47 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
48 template<typename PolicyNameT = Aws::String>
49 Policy& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
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) { m_policyArnHasBeenSet = true; m_policyArn = std::forward<PolicyArnT>(value); }
60 template<typename PolicyArnT = Aws::String>
61 Policy& WithPolicyArn(PolicyArnT&& value) { SetPolicyArn(std::forward<PolicyArnT>(value)); return *this;}
63 private:
64
65 Aws::String m_policyName;
66 bool m_policyNameHasBeenSet = false;
67
68 Aws::String m_policyArn;
69 bool m_policyArnHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace IoT
74} // 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:49
const Aws::String & GetPolicyName() const
Definition Policy.h:44
void SetPolicyName(PolicyNameT &&value)
Definition Policy.h:47
AWS_IOT_API Policy & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PolicyNameHasBeenSet() const
Definition Policy.h:45
Policy & WithPolicyArn(PolicyArnT &&value)
Definition Policy.h:61
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