AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
LogGroupImpact.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/logs/CloudWatchLogs_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CloudWatchLogs {
20namespace Model {
21
29 public:
30 AWS_CLOUDWATCHLOGS_API LogGroupImpact() = default;
31 AWS_CLOUDWATCHLOGS_API LogGroupImpact(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CLOUDWATCHLOGS_API LogGroupImpact& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetLogGroupName() const { return m_logGroupName; }
40 inline bool LogGroupNameHasBeenSet() const { return m_logGroupNameHasBeenSet; }
41 template <typename LogGroupNameT = Aws::String>
42 void SetLogGroupName(LogGroupNameT&& value) {
43 m_logGroupNameHasBeenSet = true;
44 m_logGroupName = std::forward<LogGroupNameT>(value);
45 }
46 template <typename LogGroupNameT = Aws::String>
47 LogGroupImpact& WithLogGroupName(LogGroupNameT&& value) {
48 SetLogGroupName(std::forward<LogGroupNameT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::String& GetCurrentRetention() const { return m_currentRetention; }
60 inline bool CurrentRetentionHasBeenSet() const { return m_currentRetentionHasBeenSet; }
61 template <typename CurrentRetentionT = Aws::String>
62 void SetCurrentRetention(CurrentRetentionT&& value) {
63 m_currentRetentionHasBeenSet = true;
64 m_currentRetention = std::forward<CurrentRetentionT>(value);
65 }
66 template <typename CurrentRetentionT = Aws::String>
67 LogGroupImpact& WithCurrentRetention(CurrentRetentionT&& value) {
68 SetCurrentRetention(std::forward<CurrentRetentionT>(value));
69 return *this;
70 }
72
74
79 inline const Aws::String& GetProposedRetention() const { return m_proposedRetention; }
80 inline bool ProposedRetentionHasBeenSet() const { return m_proposedRetentionHasBeenSet; }
81 template <typename ProposedRetentionT = Aws::String>
82 void SetProposedRetention(ProposedRetentionT&& value) {
83 m_proposedRetentionHasBeenSet = true;
84 m_proposedRetention = std::forward<ProposedRetentionT>(value);
85 }
86 template <typename ProposedRetentionT = Aws::String>
87 LogGroupImpact& WithProposedRetention(ProposedRetentionT&& value) {
88 SetProposedRetention(std::forward<ProposedRetentionT>(value));
89 return *this;
90 }
92
94
97 inline long long GetStoredBytes() const { return m_storedBytes; }
98 inline bool StoredBytesHasBeenSet() const { return m_storedBytesHasBeenSet; }
99 inline void SetStoredBytes(long long value) {
100 m_storedBytesHasBeenSet = true;
101 m_storedBytes = value;
102 }
103 inline LogGroupImpact& WithStoredBytes(long long value) {
104 SetStoredBytes(value);
105 return *this;
106 }
108 private:
109 Aws::String m_logGroupName;
110
111 Aws::String m_currentRetention;
112
113 Aws::String m_proposedRetention;
114
115 long long m_storedBytes{0};
116 bool m_logGroupNameHasBeenSet = false;
117 bool m_currentRetentionHasBeenSet = false;
118 bool m_proposedRetentionHasBeenSet = false;
119 bool m_storedBytesHasBeenSet = false;
120};
121
122} // namespace Model
123} // namespace CloudWatchLogs
124} // namespace Aws
const Aws::String & GetLogGroupName() const
LogGroupImpact & WithStoredBytes(long long value)
LogGroupImpact & WithLogGroupName(LogGroupNameT &&value)
const Aws::String & GetCurrentRetention() const
AWS_CLOUDWATCHLOGS_API LogGroupImpact & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLogGroupName(LogGroupNameT &&value)
AWS_CLOUDWATCHLOGS_API LogGroupImpact(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetProposedRetention() const
void SetProposedRetention(ProposedRetentionT &&value)
LogGroupImpact & WithCurrentRetention(CurrentRetentionT &&value)
LogGroupImpact & WithProposedRetention(ProposedRetentionT &&value)
void SetCurrentRetention(CurrentRetentionT &&value)
AWS_CLOUDWATCHLOGS_API LogGroupImpact()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue