AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IndexPolicy.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9#include <aws/logs/model/IndexSource.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CloudWatchLogs {
21namespace Model {
22
30 public:
31 AWS_CLOUDWATCHLOGS_API IndexPolicy() = default;
32 AWS_CLOUDWATCHLOGS_API IndexPolicy(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API IndexPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
41 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
42 template <typename LogGroupIdentifierT = Aws::String>
43 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) {
44 m_logGroupIdentifierHasBeenSet = true;
45 m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value);
46 }
47 template <typename LogGroupIdentifierT = Aws::String>
48 IndexPolicy& WithLogGroupIdentifier(LogGroupIdentifierT&& value) {
49 SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value));
50 return *this;
51 }
53
55
58 inline long long GetLastUpdateTime() const { return m_lastUpdateTime; }
59 inline bool LastUpdateTimeHasBeenSet() const { return m_lastUpdateTimeHasBeenSet; }
60 inline void SetLastUpdateTime(long long value) {
61 m_lastUpdateTimeHasBeenSet = true;
62 m_lastUpdateTime = value;
63 }
64 inline IndexPolicy& WithLastUpdateTime(long long value) {
65 SetLastUpdateTime(value);
66 return *this;
67 }
69
71
74 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
75 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
76 template <typename PolicyDocumentT = Aws::String>
77 void SetPolicyDocument(PolicyDocumentT&& value) {
78 m_policyDocumentHasBeenSet = true;
79 m_policyDocument = std::forward<PolicyDocumentT>(value);
80 }
81 template <typename PolicyDocumentT = Aws::String>
82 IndexPolicy& WithPolicyDocument(PolicyDocumentT&& value) {
83 SetPolicyDocument(std::forward<PolicyDocumentT>(value));
84 return *this;
85 }
87
89
93 inline const Aws::String& GetPolicyName() const { return m_policyName; }
94 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
95 template <typename PolicyNameT = Aws::String>
96 void SetPolicyName(PolicyNameT&& value) {
97 m_policyNameHasBeenSet = true;
98 m_policyName = std::forward<PolicyNameT>(value);
99 }
100 template <typename PolicyNameT = Aws::String>
101 IndexPolicy& WithPolicyName(PolicyNameT&& value) {
102 SetPolicyName(std::forward<PolicyNameT>(value));
103 return *this;
104 }
106
108
112 inline IndexSource GetSource() const { return m_source; }
113 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
114 inline void SetSource(IndexSource value) {
115 m_sourceHasBeenSet = true;
116 m_source = value;
117 }
119 SetSource(value);
120 return *this;
121 }
123 private:
124 Aws::String m_logGroupIdentifier;
125
126 long long m_lastUpdateTime{0};
127
128 Aws::String m_policyDocument;
129
130 Aws::String m_policyName;
131
133 bool m_logGroupIdentifierHasBeenSet = false;
134 bool m_lastUpdateTimeHasBeenSet = false;
135 bool m_policyDocumentHasBeenSet = false;
136 bool m_policyNameHasBeenSet = false;
137 bool m_sourceHasBeenSet = false;
138};
139
140} // namespace Model
141} // namespace CloudWatchLogs
142} // namespace Aws
void SetLogGroupIdentifier(LogGroupIdentifierT &&value)
Definition IndexPolicy.h:43
void SetPolicyDocument(PolicyDocumentT &&value)
Definition IndexPolicy.h:77
AWS_CLOUDWATCHLOGS_API IndexPolicy(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdateTime(long long value)
Definition IndexPolicy.h:60
IndexPolicy & WithLastUpdateTime(long long value)
Definition IndexPolicy.h:64
IndexPolicy & WithSource(IndexSource value)
void SetPolicyName(PolicyNameT &&value)
Definition IndexPolicy.h:96
const Aws::String & GetLogGroupIdentifier() const
Definition IndexPolicy.h:40
AWS_CLOUDWATCHLOGS_API IndexPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPolicyDocument() const
Definition IndexPolicy.h:74
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
IndexPolicy & WithPolicyName(PolicyNameT &&value)
const Aws::String & GetPolicyName() const
Definition IndexPolicy.h:93
IndexPolicy & WithPolicyDocument(PolicyDocumentT &&value)
Definition IndexPolicy.h:82
IndexPolicy & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
Definition IndexPolicy.h:48
AWS_CLOUDWATCHLOGS_API IndexPolicy()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue