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/xray/XRay_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace XRay
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_XRAY_API ResourcePolicy();
41
42
44
48 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
49 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
50 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
51 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
52 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
53 inline ResourcePolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
54 inline ResourcePolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
55 inline ResourcePolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
57
59
62 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
63 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
64 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
65 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
66 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
67 inline ResourcePolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
68 inline ResourcePolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
69 inline ResourcePolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
71
73
76 inline const Aws::String& GetPolicyRevisionId() const{ return m_policyRevisionId; }
77 inline bool PolicyRevisionIdHasBeenSet() const { return m_policyRevisionIdHasBeenSet; }
78 inline void SetPolicyRevisionId(const Aws::String& value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId = value; }
79 inline void SetPolicyRevisionId(Aws::String&& value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId = std::move(value); }
80 inline void SetPolicyRevisionId(const char* value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId.assign(value); }
81 inline ResourcePolicy& WithPolicyRevisionId(const Aws::String& value) { SetPolicyRevisionId(value); return *this;}
82 inline ResourcePolicy& WithPolicyRevisionId(Aws::String&& value) { SetPolicyRevisionId(std::move(value)); return *this;}
83 inline ResourcePolicy& WithPolicyRevisionId(const char* value) { SetPolicyRevisionId(value); return *this;}
85
87
90 inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
91 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
92 inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
93 inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); }
94 inline ResourcePolicy& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;}
95 inline ResourcePolicy& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;}
97 private:
98
99 Aws::String m_policyName;
100 bool m_policyNameHasBeenSet = false;
101
102 Aws::String m_policyDocument;
103 bool m_policyDocumentHasBeenSet = false;
104
105 Aws::String m_policyRevisionId;
106 bool m_policyRevisionIdHasBeenSet = false;
107
108 Aws::Utils::DateTime m_lastUpdatedTime;
109 bool m_lastUpdatedTimeHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace XRay
114} // namespace Aws
ResourcePolicy & WithLastUpdatedTime(const Aws::Utils::DateTime &value)
AWS_XRAY_API ResourcePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPolicyName(const char *value)
void SetPolicyName(const Aws::String &value)
ResourcePolicy & WithPolicyRevisionId(const char *value)
AWS_XRAY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLastUpdatedTime(Aws::Utils::DateTime &&value)
ResourcePolicy & WithPolicyName(Aws::String &&value)
AWS_XRAY_API ResourcePolicy(Aws::Utils::Json::JsonView jsonValue)
ResourcePolicy & WithPolicyRevisionId(const Aws::String &value)
ResourcePolicy & WithPolicyDocument(const Aws::String &value)
void SetLastUpdatedTime(const Aws::Utils::DateTime &value)
ResourcePolicy & WithLastUpdatedTime(Aws::Utils::DateTime &&value)
void SetPolicyName(Aws::String &&value)
void SetPolicyRevisionId(const char *value)
void SetPolicyDocument(const char *value)
void SetPolicyDocument(const Aws::String &value)
ResourcePolicy & WithPolicyRevisionId(Aws::String &&value)
const Aws::String & GetPolicyRevisionId() const
ResourcePolicy & WithPolicyDocument(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdatedTime() const
ResourcePolicy & WithPolicyName(const Aws::String &value)
void SetPolicyRevisionId(const Aws::String &value)
void SetPolicyDocument(Aws::String &&value)
ResourcePolicy & WithPolicyName(const char *value)
ResourcePolicy & WithPolicyDocument(const char *value)
const Aws::String & GetPolicyDocument() const
const Aws::String & GetPolicyName() const
void SetPolicyRevisionId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue