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/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();
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 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
47 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
48 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
49 inline Policy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
50 inline Policy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
51 inline Policy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
53
55
58 inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
59 inline bool PolicyArnHasBeenSet() const { return m_policyArnHasBeenSet; }
60 inline void SetPolicyArn(const Aws::String& value) { m_policyArnHasBeenSet = true; m_policyArn = value; }
61 inline void SetPolicyArn(Aws::String&& value) { m_policyArnHasBeenSet = true; m_policyArn = std::move(value); }
62 inline void SetPolicyArn(const char* value) { m_policyArnHasBeenSet = true; m_policyArn.assign(value); }
63 inline Policy& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
64 inline Policy& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
65 inline Policy& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
67 private:
68
69 Aws::String m_policyName;
70 bool m_policyNameHasBeenSet = false;
71
72 Aws::String m_policyArn;
73 bool m_policyArnHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace IoT
78} // namespace Aws
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
bool PolicyArnHasBeenSet() const
Definition Policy.h:59
Policy & WithPolicyArn(const char *value)
Definition Policy.h:65
Policy & WithPolicyName(Aws::String &&value)
Definition Policy.h:50
Policy & WithPolicyArn(Aws::String &&value)
Definition Policy.h:64
Policy & WithPolicyArn(const Aws::String &value)
Definition Policy.h:63
void SetPolicyName(Aws::String &&value)
Definition Policy.h:47
Policy & WithPolicyName(const Aws::String &value)
Definition Policy.h:49
void SetPolicyArn(const Aws::String &value)
Definition Policy.h:60
void SetPolicyName(const char *value)
Definition Policy.h:48
const Aws::String & GetPolicyName() const
Definition Policy.h:44
void SetPolicyArn(const char *value)
Definition Policy.h:62
void SetPolicyArn(Aws::String &&value)
Definition Policy.h:61
Policy & WithPolicyName(const char *value)
Definition Policy.h:51
AWS_IOT_API Policy & operator=(Aws::Utils::Json::JsonView jsonValue)
bool PolicyNameHasBeenSet() const
Definition Policy.h:45
const Aws::String & GetPolicyArn() const
Definition Policy.h:58
AWS_IOT_API Policy(Aws::Utils::Json::JsonView jsonValue)
void SetPolicyName(const Aws::String &value)
Definition Policy.h:46
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue