AWS SDK for C++  0.12.9
AWS SDK for C++
DisableEnhancedMonitoringResult.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
20 
21 namespace Aws
22 {
23 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace Kinesis
34 {
35 namespace Model
36 {
42  {
43  public:
47 
51  inline const Aws::String& GetStreamName() const{ return m_streamName; }
52 
56  inline void SetStreamName(const Aws::String& value) { m_streamName = value; }
57 
61  inline void SetStreamName(Aws::String&& value) { m_streamName = value; }
62 
66  inline void SetStreamName(const char* value) { m_streamName.assign(value); }
67 
71  inline DisableEnhancedMonitoringResult& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
72 
76  inline DisableEnhancedMonitoringResult& WithStreamName(Aws::String&& value) { SetStreamName(value); return *this;}
77 
81  inline DisableEnhancedMonitoringResult& WithStreamName(const char* value) { SetStreamName(value); return *this;}
82 
87  inline const Aws::Vector<MetricsName>& GetCurrentShardLevelMetrics() const{ return m_currentShardLevelMetrics; }
88 
93  inline void SetCurrentShardLevelMetrics(const Aws::Vector<MetricsName>& value) { m_currentShardLevelMetrics = value; }
94 
99  inline void SetCurrentShardLevelMetrics(Aws::Vector<MetricsName>&& value) { m_currentShardLevelMetrics = value; }
100 
105  inline DisableEnhancedMonitoringResult& WithCurrentShardLevelMetrics(const Aws::Vector<MetricsName>& value) { SetCurrentShardLevelMetrics(value); return *this;}
106 
111  inline DisableEnhancedMonitoringResult& WithCurrentShardLevelMetrics(Aws::Vector<MetricsName>&& value) { SetCurrentShardLevelMetrics(value); return *this;}
112 
117  inline DisableEnhancedMonitoringResult& AddCurrentShardLevelMetrics(const MetricsName& value) { m_currentShardLevelMetrics.push_back(value); return *this; }
118 
123  inline DisableEnhancedMonitoringResult& AddCurrentShardLevelMetrics(MetricsName&& value) { m_currentShardLevelMetrics.push_back(value); return *this; }
124 
129  inline const Aws::Vector<MetricsName>& GetDesiredShardLevelMetrics() const{ return m_desiredShardLevelMetrics; }
130 
135  inline void SetDesiredShardLevelMetrics(const Aws::Vector<MetricsName>& value) { m_desiredShardLevelMetrics = value; }
136 
141  inline void SetDesiredShardLevelMetrics(Aws::Vector<MetricsName>&& value) { m_desiredShardLevelMetrics = value; }
142 
147  inline DisableEnhancedMonitoringResult& WithDesiredShardLevelMetrics(const Aws::Vector<MetricsName>& value) { SetDesiredShardLevelMetrics(value); return *this;}
148 
153  inline DisableEnhancedMonitoringResult& WithDesiredShardLevelMetrics(Aws::Vector<MetricsName>&& value) { SetDesiredShardLevelMetrics(value); return *this;}
154 
159  inline DisableEnhancedMonitoringResult& AddDesiredShardLevelMetrics(const MetricsName& value) { m_desiredShardLevelMetrics.push_back(value); return *this; }
160 
165  inline DisableEnhancedMonitoringResult& AddDesiredShardLevelMetrics(MetricsName&& value) { m_desiredShardLevelMetrics.push_back(value); return *this; }
166 
167  private:
168  Aws::String m_streamName;
169  Aws::Vector<MetricsName> m_currentShardLevelMetrics;
170  Aws::Vector<MetricsName> m_desiredShardLevelMetrics;
171  };
172 
173 } // namespace Model
174 } // namespace Kinesis
175 } // namespace Aws
DisableEnhancedMonitoringResult & WithStreamName(const char *value)
DisableEnhancedMonitoringResult & WithStreamName(Aws::String &&value)
DisableEnhancedMonitoringResult & AddCurrentShardLevelMetrics(MetricsName &&value)
void SetCurrentShardLevelMetrics(const Aws::Vector< MetricsName > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DisableEnhancedMonitoringResult & WithDesiredShardLevelMetrics(const Aws::Vector< MetricsName > &value)
void SetDesiredShardLevelMetrics(const Aws::Vector< MetricsName > &value)
void SetDesiredShardLevelMetrics(Aws::Vector< MetricsName > &&value)
DisableEnhancedMonitoringResult & AddDesiredShardLevelMetrics(MetricsName &&value)
DisableEnhancedMonitoringResult & WithDesiredShardLevelMetrics(Aws::Vector< MetricsName > &&value)
DisableEnhancedMonitoringResult & AddCurrentShardLevelMetrics(const MetricsName &value)
DisableEnhancedMonitoringResult & WithCurrentShardLevelMetrics(Aws::Vector< MetricsName > &&value)
const Aws::Vector< MetricsName > & GetCurrentShardLevelMetrics() const
const Aws::Vector< MetricsName > & GetDesiredShardLevelMetrics() const
DisableEnhancedMonitoringResult & WithStreamName(const Aws::String &value)
void SetCurrentShardLevelMetrics(Aws::Vector< MetricsName > &&value)
DisableEnhancedMonitoringResult & AddDesiredShardLevelMetrics(const MetricsName &value)
#define AWS_KINESIS_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
JSON (JavaScript Object Notation).
DisableEnhancedMonitoringResult & WithCurrentShardLevelMetrics(const Aws::Vector< MetricsName > &value)