AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourcePolicy.h
1
6#pragma once
7#include <aws/ssm-incidents/SSMIncidents_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 SSMIncidents
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SSMINCIDENTS_API ResourcePolicy();
36 AWS_SSMINCIDENTS_API ResourcePolicy(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SSMINCIDENTS_API ResourcePolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
46 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
47 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
48 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
49 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
50 inline ResourcePolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
51 inline ResourcePolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
52 inline ResourcePolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
54
56
59 inline const Aws::String& GetPolicyId() const{ return m_policyId; }
60 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
61 inline void SetPolicyId(const Aws::String& value) { m_policyIdHasBeenSet = true; m_policyId = value; }
62 inline void SetPolicyId(Aws::String&& value) { m_policyIdHasBeenSet = true; m_policyId = std::move(value); }
63 inline void SetPolicyId(const char* value) { m_policyIdHasBeenSet = true; m_policyId.assign(value); }
64 inline ResourcePolicy& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
65 inline ResourcePolicy& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
66 inline ResourcePolicy& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
68
70
74 inline const Aws::String& GetRamResourceShareRegion() const{ return m_ramResourceShareRegion; }
75 inline bool RamResourceShareRegionHasBeenSet() const { return m_ramResourceShareRegionHasBeenSet; }
76 inline void SetRamResourceShareRegion(const Aws::String& value) { m_ramResourceShareRegionHasBeenSet = true; m_ramResourceShareRegion = value; }
77 inline void SetRamResourceShareRegion(Aws::String&& value) { m_ramResourceShareRegionHasBeenSet = true; m_ramResourceShareRegion = std::move(value); }
78 inline void SetRamResourceShareRegion(const char* value) { m_ramResourceShareRegionHasBeenSet = true; m_ramResourceShareRegion.assign(value); }
80 inline ResourcePolicy& WithRamResourceShareRegion(Aws::String&& value) { SetRamResourceShareRegion(std::move(value)); return *this;}
81 inline ResourcePolicy& WithRamResourceShareRegion(const char* value) { SetRamResourceShareRegion(value); return *this;}
83 private:
84
85 Aws::String m_policyDocument;
86 bool m_policyDocumentHasBeenSet = false;
87
88 Aws::String m_policyId;
89 bool m_policyIdHasBeenSet = false;
90
91 Aws::String m_ramResourceShareRegion;
92 bool m_ramResourceShareRegionHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace SSMIncidents
97} // namespace Aws
void SetPolicyId(Aws::String &&value)
AWS_SSMINCIDENTS_API ResourcePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourcePolicy & WithPolicyId(const Aws::String &value)
ResourcePolicy & WithPolicyDocument(const Aws::String &value)
void SetPolicyDocument(const Aws::String &value)
ResourcePolicy & WithRamResourceShareRegion(const Aws::String &value)
ResourcePolicy & WithRamResourceShareRegion(const char *value)
const Aws::String & GetRamResourceShareRegion() const
const Aws::String & GetPolicyDocument() const
AWS_SSMINCIDENTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_SSMINCIDENTS_API ResourcePolicy(Aws::Utils::Json::JsonView jsonValue)
void SetRamResourceShareRegion(Aws::String &&value)
ResourcePolicy & WithPolicyId(Aws::String &&value)
void SetPolicyDocument(const char *value)
void SetPolicyDocument(Aws::String &&value)
ResourcePolicy & WithRamResourceShareRegion(Aws::String &&value)
ResourcePolicy & WithPolicyDocument(const char *value)
ResourcePolicy & WithPolicyId(const char *value)
void SetRamResourceShareRegion(const Aws::String &value)
const Aws::String & GetPolicyId() const
ResourcePolicy & WithPolicyDocument(Aws::String &&value)
void SetRamResourceShareRegion(const char *value)
void SetPolicyId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue