AWS SDK for C++  0.12.9
AWS SDK for C++
EnableEnhancedMonitoringRequest.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
21 
22 namespace Aws
23 {
24 namespace Kinesis
25 {
26 namespace Model
27 {
28 
33  {
34  public:
36  Aws::String SerializePayload() const override;
37 
38  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
39 
43  inline const Aws::String& GetStreamName() const{ return m_streamName; }
44 
48  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
49 
53  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
54 
58  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
59 
63  inline EnableEnhancedMonitoringRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
64 
68  inline EnableEnhancedMonitoringRequest& WithStreamName(Aws::String&& value) { SetStreamName(value); return *this;}
69 
73  inline EnableEnhancedMonitoringRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
74 
88  inline const Aws::Vector<MetricsName>& GetShardLevelMetrics() const{ return m_shardLevelMetrics; }
89 
103  inline void SetShardLevelMetrics(const Aws::Vector<MetricsName>& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = value; }
104 
118  inline void SetShardLevelMetrics(Aws::Vector<MetricsName>&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = value; }
119 
133  inline EnableEnhancedMonitoringRequest& WithShardLevelMetrics(const Aws::Vector<MetricsName>& value) { SetShardLevelMetrics(value); return *this;}
134 
148  inline EnableEnhancedMonitoringRequest& WithShardLevelMetrics(Aws::Vector<MetricsName>&& value) { SetShardLevelMetrics(value); return *this;}
149 
163  inline EnableEnhancedMonitoringRequest& AddShardLevelMetrics(const MetricsName& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(value); return *this; }
164 
178  inline EnableEnhancedMonitoringRequest& AddShardLevelMetrics(MetricsName&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(value); return *this; }
179 
180  private:
181  Aws::String m_streamName;
182  bool m_streamNameHasBeenSet;
183  Aws::Vector<MetricsName> m_shardLevelMetrics;
184  bool m_shardLevelMetricsHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace Kinesis
189 } // namespace Aws
EnableEnhancedMonitoringRequest & AddShardLevelMetrics(MetricsName &&value)
const Aws::Vector< MetricsName > & GetShardLevelMetrics() const
EnableEnhancedMonitoringRequest & WithStreamName(Aws::String &&value)
void SetShardLevelMetrics(const Aws::Vector< MetricsName > &value)
EnableEnhancedMonitoringRequest & WithStreamName(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
EnableEnhancedMonitoringRequest & WithStreamName(const Aws::String &value)
EnableEnhancedMonitoringRequest & WithShardLevelMetrics(Aws::Vector< MetricsName > &&value)
#define AWS_KINESIS_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
EnableEnhancedMonitoringRequest & WithShardLevelMetrics(const Aws::Vector< MetricsName > &value)
EnableEnhancedMonitoringRequest & AddShardLevelMetrics(const MetricsName &value)
JSON (JavaScript Object Notation).