AWS SDK for C++  0.12.9
AWS SDK for C++
DisableEnhancedMonitoringRequest.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 
44  inline const Aws::String& GetStreamName() const{ return m_streamName; }
45 
50  inline void SetStreamName(const Aws::String& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
51 
56  inline void SetStreamName(Aws::String&& value) { m_streamNameHasBeenSet = true; m_streamName = value; }
57 
62  inline void SetStreamName(const char* value) { m_streamNameHasBeenSet = true; m_streamName.assign(value); }
63 
68  inline DisableEnhancedMonitoringRequest& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
69 
74  inline DisableEnhancedMonitoringRequest& WithStreamName(Aws::String&& value) { SetStreamName(value); return *this;}
75 
80  inline DisableEnhancedMonitoringRequest& WithStreamName(const char* value) { SetStreamName(value); return *this;}
81 
95  inline const Aws::Vector<MetricsName>& GetShardLevelMetrics() const{ return m_shardLevelMetrics; }
96 
110  inline void SetShardLevelMetrics(const Aws::Vector<MetricsName>& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = value; }
111 
125  inline void SetShardLevelMetrics(Aws::Vector<MetricsName>&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics = value; }
126 
140  inline DisableEnhancedMonitoringRequest& WithShardLevelMetrics(const Aws::Vector<MetricsName>& value) { SetShardLevelMetrics(value); return *this;}
141 
155  inline DisableEnhancedMonitoringRequest& WithShardLevelMetrics(Aws::Vector<MetricsName>&& value) { SetShardLevelMetrics(value); return *this;}
156 
170  inline DisableEnhancedMonitoringRequest& AddShardLevelMetrics(const MetricsName& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(value); return *this; }
171 
185  inline DisableEnhancedMonitoringRequest& AddShardLevelMetrics(MetricsName&& value) { m_shardLevelMetricsHasBeenSet = true; m_shardLevelMetrics.push_back(value); return *this; }
186 
187  private:
188  Aws::String m_streamName;
189  bool m_streamNameHasBeenSet;
190  Aws::Vector<MetricsName> m_shardLevelMetrics;
191  bool m_shardLevelMetricsHasBeenSet;
192  };
193 
194 } // namespace Model
195 } // namespace Kinesis
196 } // namespace Aws
DisableEnhancedMonitoringRequest & WithStreamName(const char *value)
DisableEnhancedMonitoringRequest & WithStreamName(const Aws::String &value)
DisableEnhancedMonitoringRequest & WithShardLevelMetrics(Aws::Vector< MetricsName > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
DisableEnhancedMonitoringRequest & AddShardLevelMetrics(MetricsName &&value)
void SetShardLevelMetrics(const Aws::Vector< MetricsName > &value)
DisableEnhancedMonitoringRequest & WithStreamName(Aws::String &&value)
#define AWS_KINESIS_API
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DisableEnhancedMonitoringRequest & WithShardLevelMetrics(const Aws::Vector< MetricsName > &value)
const Aws::Vector< MetricsName > & GetShardLevelMetrics() const
JSON (JavaScript Object Notation).
DisableEnhancedMonitoringRequest & AddShardLevelMetrics(const MetricsName &value)