AWS SDK for C++  0.12.9
AWS SDK for C++
CloudWatchLoggingOptions.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 Firehose
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  CloudWatchLoggingOptions& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline bool GetEnabled() const{ return m_enabled; }
48 
52  inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; }
53 
57  inline CloudWatchLoggingOptions& WithEnabled(bool value) { SetEnabled(value); return *this;}
58 
63  inline const Aws::String& GetLogGroupName() const{ return m_logGroupName; }
64 
69  inline void SetLogGroupName(const Aws::String& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
70 
75  inline void SetLogGroupName(Aws::String&& value) { m_logGroupNameHasBeenSet = true; m_logGroupName = value; }
76 
81  inline void SetLogGroupName(const char* value) { m_logGroupNameHasBeenSet = true; m_logGroupName.assign(value); }
82 
87  inline CloudWatchLoggingOptions& WithLogGroupName(const Aws::String& value) { SetLogGroupName(value); return *this;}
88 
93  inline CloudWatchLoggingOptions& WithLogGroupName(Aws::String&& value) { SetLogGroupName(value); return *this;}
94 
99  inline CloudWatchLoggingOptions& WithLogGroupName(const char* value) { SetLogGroupName(value); return *this;}
100 
105  inline const Aws::String& GetLogStreamName() const{ return m_logStreamName; }
106 
111  inline void SetLogStreamName(const Aws::String& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
112 
117  inline void SetLogStreamName(Aws::String&& value) { m_logStreamNameHasBeenSet = true; m_logStreamName = value; }
118 
123  inline void SetLogStreamName(const char* value) { m_logStreamNameHasBeenSet = true; m_logStreamName.assign(value); }
124 
129  inline CloudWatchLoggingOptions& WithLogStreamName(const Aws::String& value) { SetLogStreamName(value); return *this;}
130 
135  inline CloudWatchLoggingOptions& WithLogStreamName(Aws::String&& value) { SetLogStreamName(value); return *this;}
136 
141  inline CloudWatchLoggingOptions& WithLogStreamName(const char* value) { SetLogStreamName(value); return *this;}
142 
143  private:
144  bool m_enabled;
145  bool m_enabledHasBeenSet;
146  Aws::String m_logGroupName;
147  bool m_logGroupNameHasBeenSet;
148  Aws::String m_logStreamName;
149  bool m_logStreamNameHasBeenSet;
150  };
151 
152 } // namespace Model
153 } // namespace Firehose
154 } // namespace Aws
CloudWatchLoggingOptions & WithLogGroupName(Aws::String &&value)
#define AWS_FIREHOSE_API
CloudWatchLoggingOptions & WithLogStreamName(const char *value)
CloudWatchLoggingOptions & WithLogStreamName(Aws::String &&value)
CloudWatchLoggingOptions & WithLogStreamName(const Aws::String &value)
CloudWatchLoggingOptions & WithLogGroupName(const Aws::String &value)
CloudWatchLoggingOptions & WithEnabled(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).
CloudWatchLoggingOptions & WithLogGroupName(const char *value)