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/logs/CloudWatchLogs_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 CloudWatchLogs
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CLOUDWATCHLOGS_API ResourcePolicy();
36 AWS_CLOUDWATCHLOGS_API ResourcePolicy(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CLOUDWATCHLOGS_API ResourcePolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
46 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
47 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
48 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
49 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
50 inline ResourcePolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
51 inline ResourcePolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
52 inline ResourcePolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
54
56
59 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
60 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
61 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
62 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
63 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
64 inline ResourcePolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
65 inline ResourcePolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
66 inline ResourcePolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
68
70
74 inline long long GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
75 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
76 inline void SetLastUpdatedTime(long long value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
77 inline ResourcePolicy& WithLastUpdatedTime(long long value) { SetLastUpdatedTime(value); return *this;}
79 private:
80
81 Aws::String m_policyName;
82 bool m_policyNameHasBeenSet = false;
83
84 Aws::String m_policyDocument;
85 bool m_policyDocumentHasBeenSet = false;
86
87 long long m_lastUpdatedTime;
88 bool m_lastUpdatedTimeHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace CloudWatchLogs
93} // namespace Aws
const Aws::String & GetPolicyName() const
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
ResourcePolicy & WithLastUpdatedTime(long long value)
void SetPolicyDocument(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API ResourcePolicy()
const Aws::String & GetPolicyDocument() const
AWS_CLOUDWATCHLOGS_API ResourcePolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourcePolicy & WithPolicyDocument(Aws::String &&value)
ResourcePolicy & WithPolicyName(const char *value)
ResourcePolicy & WithPolicyDocument(const char *value)
ResourcePolicy & WithPolicyDocument(const Aws::String &value)
void SetPolicyName(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API ResourcePolicy(Aws::Utils::Json::JsonView jsonValue)
void SetPolicyDocument(Aws::String &&value)
ResourcePolicy & WithPolicyName(Aws::String &&value)
ResourcePolicy & WithPolicyName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue