AWS SDK for C++  0.12.9
AWS SDK for C++
LogStream.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 
37  {
38  public:
39  LogStream();
40  LogStream(const Aws::Utils::Json::JsonValue& jsonValue);
41  LogStream& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
44 
45  inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
46 
47 
48  inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
49 
50 
51  inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
52 
53 
54  inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
55 
56 
57  inline LogStream& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
58 
59 
60  inline LogStream& WithLogStreamName(Aws::String&& value) { SetLogStreamName(value); return *this;}
61 
62 
63  inline LogStream& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
64 
65 
66  inline long long GetCreationTime() const{ return m_creationTime; }
67 
68 
69  inline void SetCreationTime(long long value) { m_creationTimeHasBeenSet = true; m_creationTime = value; }
70 
71 
72  inline LogStream& WithCreationTime(long long value) { SetCreationTime(value); return *this;}
73 
74 
75  inline long long GetFirstEventTimestamp() const{ return m_firstEventTimestamp; }
76 
77 
78  inline void SetFirstEventTimestamp(long long value) { m_firstEventTimestampHasBeenSet = true; m_firstEventTimestamp = value; }
79 
80 
81  inline LogStream& WithFirstEventTimestamp(long long value) { SetFirstEventTimestamp(value); return *this;}
82 
83 
84  inline long long GetLastEventTimestamp() const{ return m_lastEventTimestamp; }
85 
86 
87  inline void SetLastEventTimestamp(long long value) { m_lastEventTimestampHasBeenSet = true; m_lastEventTimestamp = value; }
88 
89 
90  inline LogStream& WithLastEventTimestamp(long long value) { SetLastEventTimestamp(value); return *this;}
91 
92 
93  inline long long GetLastIngestionTime() const{ return m_lastIngestionTime; }
94 
95 
96  inline void SetLastIngestionTime(long long value) { m_lastIngestionTimeHasBeenSet = true; m_lastIngestionTime = value; }
97 
98 
99  inline LogStream& WithLastIngestionTime(long long value) { SetLastIngestionTime(value); return *this;}
100 
101 
102  inline const Aws::String& GetUploadSequenceToken() const{ return m_uploadSequenceToken; }
103 
104 
105  inline void SetUploadSequenceToken(const Aws::String& value) { m_uploadSequenceTokenHasBeenSet = true; m_uploadSequenceToken = value; }
106 
107 
108  inline void SetUploadSequenceToken(Aws::String&& value) { m_uploadSequenceTokenHasBeenSet = true; m_uploadSequenceToken = value; }
109 
110 
111  inline void SetUploadSequenceToken(const char* value) { m_uploadSequenceTokenHasBeenSet = true; m_uploadSequenceToken.assign(value); }
112 
113 
114  inline LogStream& WithUploadSequenceToken(const Aws::String& value) { SetUploadSequenceToken(value); return *this;}
115 
116 
117  inline LogStream& WithUploadSequenceToken(Aws::String&& value) { SetUploadSequenceToken(value); return *this;}
118 
119 
120  inline LogStream& WithUploadSequenceToken(const char* value) { SetUploadSequenceToken(value); return *this;}
121 
122 
123  inline const Aws::String& GetArn() const{ return m_arn; }
124 
125 
126  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
127 
128 
129  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = value; }
130 
131 
132  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
133 
134 
135  inline LogStream& WithArn(const Aws::String& value) { SetArn(value); return *this;}
136 
137 
138  inline LogStream& WithArn(Aws::String&& value) { SetArn(value); return *this;}
139 
140 
141  inline LogStream& WithArn(const char* value) { SetArn(value); return *this;}
142 
143 
144  inline long long GetStoredBytes() const{ return m_storedBytes; }
145 
146 
147  inline void SetStoredBytes(long long value) { m_storedBytesHasBeenSet = true; m_storedBytes = value; }
148 
149 
150  inline LogStream& WithStoredBytes(long long value) { SetStoredBytes(value); return *this;}
151 
152  private:
153  Aws::String m_logStreamName;
154  bool m_logStreamNameHasBeenSet;
155  long long m_creationTime;
156  bool m_creationTimeHasBeenSet;
157  long long m_firstEventTimestamp;
158  bool m_firstEventTimestampHasBeenSet;
159  long long m_lastEventTimestamp;
160  bool m_lastEventTimestampHasBeenSet;
161  long long m_lastIngestionTime;
162  bool m_lastIngestionTimeHasBeenSet;
163  Aws::String m_uploadSequenceToken;
164  bool m_uploadSequenceTokenHasBeenSet;
165  Aws::String m_arn;
166  bool m_arnHasBeenSet;
167  long long m_storedBytes;
168  bool m_storedBytesHasBeenSet;
169  };
170 
171 } // namespace Model
172 } // namespace CloudWatchLogs
173 } // namespace Aws
void SetLogStreamName(const char *value)
Definition: LogStream.h:54
void SetUploadSequenceToken(const Aws::String &value)
Definition: LogStream.h:105
const Aws::String & GetArn() const
Definition: LogStream.h:123
const Aws::String & GetLogStreamName() const
Definition: LogStream.h:45
void SetLogStreamName(Aws::String &&value)
Definition: LogStream.h:51
LogStream & WithLastEventTimestamp(long long value)
Definition: LogStream.h:90
void SetArn(Aws::String &&value)
Definition: LogStream.h:129
void SetLastEventTimestamp(long long value)
Definition: LogStream.h:87
long long GetLastEventTimestamp() const
Definition: LogStream.h:84
LogStream & WithArn(const Aws::String &value)
Definition: LogStream.h:135
long long GetCreationTime() const
Definition: LogStream.h:66
LogStream & WithLastIngestionTime(long long value)
Definition: LogStream.h:99
void SetCreationTime(long long value)
Definition: LogStream.h:69
LogStream & WithArn(Aws::String &&value)
Definition: LogStream.h:138
void SetArn(const char *value)
Definition: LogStream.h:132
void SetUploadSequenceToken(const char *value)
Definition: LogStream.h:111
void SetUploadSequenceToken(Aws::String &&value)
Definition: LogStream.h:108
LogStream & WithFirstEventTimestamp(long long value)
Definition: LogStream.h:81
LogStream & WithLogStreamName(Aws::String &&value)
Definition: LogStream.h:60
void SetLastIngestionTime(long long value)
Definition: LogStream.h:96
#define AWS_CLOUDWATCHLOGS_API
LogStream & WithArn(const char *value)
Definition: LogStream.h:141
long long GetFirstEventTimestamp() const
Definition: LogStream.h:75
long long GetLastIngestionTime() const
Definition: LogStream.h:93
LogStream & WithUploadSequenceToken(Aws::String &&value)
Definition: LogStream.h:117
void SetLogStreamName(const Aws::String &value)
Definition: LogStream.h:48
const Aws::String & GetUploadSequenceToken() const
Definition: LogStream.h:102
LogStream & WithUploadSequenceToken(const Aws::String &value)
Definition: LogStream.h:114
LogStream & WithLogStreamName(const char *value)
Definition: LogStream.h:63
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
LogStream & WithLogStreamName(const Aws::String &value)
Definition: LogStream.h:57
LogStream & WithStoredBytes(long long value)
Definition: LogStream.h:150
LogStream & WithUploadSequenceToken(const char *value)
Definition: LogStream.h:120
LogStream & WithCreationTime(long long value)
Definition: LogStream.h:72
JSON (JavaScript Object Notation).
void SetArn(const Aws::String &value)
Definition: LogStream.h:126
void SetStoredBytes(long long value)
Definition: LogStream.h:147
void SetFirstEventTimestamp(long long value)
Definition: LogStream.h:78