AWS SDK for C++  0.12.9
AWS SDK for C++
LogGroup.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace CloudWatchLogs
29 {
30 namespace Model
31 {
32 
34  {
35  public:
36  LogGroup();
37  LogGroup(const Aws::Utils::Json::JsonValue& jsonValue);
38  LogGroup& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
39  Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
42  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
43 
44 
45  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
46 
47 
48  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
49 
50 
51  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
52 
53 
54  inline LogGroup& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
55 
56 
57  inline LogGroup& WithLogGroupName(Aws::String&& value) { SetLogGroupName(value); return *this;}
58 
59 
60  inline LogGroup& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
61 
62 
63  inline long long GetCreationTime() const{ return m_creationTime; }
64 
65 
66  inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
67 
68 
69  inline LogGroup& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
70 
71 
72  inline long GetRetentionInDays() const{ return m_retentionInDays; }
73 
74 
75  inline void SetRetentionInDays(long value) { m_retentionInDaysHasBeenSet = true; m_retentionInDays = value; }
76 
77 
78  inline LogGroup& WithRetentionInDays(long value) { SetRetentionInDays(value); return *this;}
79 
80 
81  inline long GetMetricFilterCount() const{ return m_metricFilterCount; }
82 
83 
84  inline void SetMetricFilterCount(long value) { m_metricFilterCountHasBeenSet = true; m_metricFilterCount = value; }
85 
86 
87  inline LogGroup& WithMetricFilterCount(long value) { SetMetricFilterCount(value); return *this;}
88 
89 
90  inline const Aws::String& GetArn() const{ return m_arn; }
91 
92 
93  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
94 
95 
96  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
97 
98 
99  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
100 
101 
102  inline LogGroup& WithArn(const Aws::String& value) { SetArn(value); return *this;}
103 
104 
105  inline LogGroup& WithArn(Aws::String&& value) { SetArn(value); return *this;}
106 
107 
108  inline LogGroup& WithArn(const char* value) { SetArn(value); return *this;}
109 
110 
111  inline long long GetStoredBytes() const{ return m_storedBytes; }
112 
113 
114  inline void SetStoredBytes(long long value) { m_storedBytesHasBeenSet = true; m_storedBytes = value; }
115 
116 
117  inline LogGroup& WithStoredBytes(long long value) { SetStoredBytes(value); return *this;}
118 
119  private:
120  Aws::String m_logGroupName;
121  bool m_logGroupNameHasBeenSet;
122  long long m_creationTime;
123  bool m_creationTimeHasBeenSet;
124  long m_retentionInDays;
125  bool m_retentionInDaysHasBeenSet;
126  long m_metricFilterCount;
127  bool m_metricFilterCountHasBeenSet;
128  Aws::String m_arn;
129  bool m_arnHasBeenSet;
130  long long m_storedBytes;
131  bool m_storedBytesHasBeenSet;
132  };
133 
134 } // namespace Model
135 } // namespace CloudWatchLogs
136 } // namespace Aws
LogGroup & WithArn(const Aws::String &value)
Definition: LogGroup.h:102
LogGroup & WithMetricFilterCount(long value)
Definition: LogGroup.h:87
void SetMetricFilterCount(long value)
Definition: LogGroup.h:84
LogGroup & WithLogGroupName(const char *value)
Definition: LogGroup.h:60
void SetCreationTime(long long value)
Definition: LogGroup.h:66
void SetArn(Aws::String &&value)
Definition: LogGroup.h:96
void SetLogGroupName(Aws::String &&value)
Definition: LogGroup.h:48
#define AWS_CLOUDWATCHLOGS_API
long long GetCreationTime() const
Definition: LogGroup.h:63
LogGroup & WithLogGroupName(Aws::String &&value)
Definition: LogGroup.h:57
const Aws::String & GetLogGroupName() const
Definition: LogGroup.h:42
LogGroup & WithArn(const char *value)
Definition: LogGroup.h:108
const Aws::String & GetArn() const
Definition: LogGroup.h:90
void SetStoredBytes(long long value)
Definition: LogGroup.h:114
LogGroup & WithLogGroupName(const Aws::String &value)
Definition: LogGroup.h:54
long long GetStoredBytes() const
Definition: LogGroup.h:111
void SetArn(const Aws::String &value)
Definition: LogGroup.h:93
void SetRetentionInDays(long value)
Definition: LogGroup.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LogGroup & WithCreationTime(long long value)
Definition: LogGroup.h:69
LogGroup & WithRetentionInDays(long value)
Definition: LogGroup.h:78
LogGroup & WithStoredBytes(long long value)
Definition: LogGroup.h:117
void SetLogGroupName(const char *value)
Definition: LogGroup.h:51
LogGroup & WithArn(Aws::String &&value)
Definition: LogGroup.h:105
void SetArn(const char *value)
Definition: LogGroup.h:99
void SetLogGroupName(const Aws::String &value)
Definition: LogGroup.h:45
JSON (JavaScript Object Notation).