AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
IndexPolicy.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/IndexSource.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 CloudWatchLogs
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDWATCHLOGS_API IndexPolicy() = default;
37 AWS_CLOUDWATCHLOGS_API IndexPolicy(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CLOUDWATCHLOGS_API IndexPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetLogGroupIdentifier() const { return m_logGroupIdentifier; }
47 inline bool LogGroupIdentifierHasBeenSet() const { return m_logGroupIdentifierHasBeenSet; }
48 template<typename LogGroupIdentifierT = Aws::String>
49 void SetLogGroupIdentifier(LogGroupIdentifierT&& value) { m_logGroupIdentifierHasBeenSet = true; m_logGroupIdentifier = std::forward<LogGroupIdentifierT>(value); }
50 template<typename LogGroupIdentifierT = Aws::String>
51 IndexPolicy& WithLogGroupIdentifier(LogGroupIdentifierT&& value) { SetLogGroupIdentifier(std::forward<LogGroupIdentifierT>(value)); return *this;}
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) { m_lastUpdateTimeHasBeenSet = true; m_lastUpdateTime = value; }
61 inline IndexPolicy& WithLastUpdateTime(long long value) { SetLastUpdateTime(value); return *this;}
63
65
68 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
69 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
70 template<typename PolicyDocumentT = Aws::String>
71 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
72 template<typename PolicyDocumentT = Aws::String>
73 IndexPolicy& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
75
77
81 inline const Aws::String& GetPolicyName() const { return m_policyName; }
82 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
83 template<typename PolicyNameT = Aws::String>
84 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
85 template<typename PolicyNameT = Aws::String>
86 IndexPolicy& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
88
90
94 inline IndexSource GetSource() const { return m_source; }
95 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
96 inline void SetSource(IndexSource value) { m_sourceHasBeenSet = true; m_source = value; }
97 inline IndexPolicy& WithSource(IndexSource value) { SetSource(value); return *this;}
99 private:
100
101 Aws::String m_logGroupIdentifier;
102 bool m_logGroupIdentifierHasBeenSet = false;
103
104 long long m_lastUpdateTime{0};
105 bool m_lastUpdateTimeHasBeenSet = false;
106
107 Aws::String m_policyDocument;
108 bool m_policyDocumentHasBeenSet = false;
109
110 Aws::String m_policyName;
111 bool m_policyNameHasBeenSet = false;
112
114 bool m_sourceHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace CloudWatchLogs
119} // namespace Aws
void SetLogGroupIdentifier(LogGroupIdentifierT &&value)
Definition IndexPolicy.h:49
void SetPolicyDocument(PolicyDocumentT &&value)
Definition IndexPolicy.h:71
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:61
IndexPolicy & WithSource(IndexSource value)
Definition IndexPolicy.h:97
void SetPolicyName(PolicyNameT &&value)
Definition IndexPolicy.h:84
const Aws::String & GetLogGroupIdentifier() const
Definition IndexPolicy.h:46
AWS_CLOUDWATCHLOGS_API IndexPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetPolicyDocument() const
Definition IndexPolicy.h:68
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
IndexPolicy & WithPolicyName(PolicyNameT &&value)
Definition IndexPolicy.h:86
const Aws::String & GetPolicyName() const
Definition IndexPolicy.h:81
IndexPolicy & WithPolicyDocument(PolicyDocumentT &&value)
Definition IndexPolicy.h:73
void SetSource(IndexSource value)
Definition IndexPolicy.h:96
IndexPolicy & WithLogGroupIdentifier(LogGroupIdentifierT &&value)
Definition IndexPolicy.h:51
AWS_CLOUDWATCHLOGS_API IndexPolicy()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue