AWS SDK for C++  1.9.104
AWS SDK for C++
EnableEnhancedMonitoringResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 template<typename RESULT_TYPE>
16 class AmazonWebServiceResult;
17 
18 namespace Utils
19 {
20 namespace Json
21 {
22  class JsonValue;
23 } // namespace Json
24 } // namespace Utils
25 namespace Kinesis
26 {
27 namespace Model
28 {
36  {
37  public:
41 
42 
46  inline const Aws::String& GetStreamName() const{ return m_streamName; }
47 
51  inline void SetStreamName(const Aws::String& value) { m_streamName = value; }
52 
56  inline void SetStreamName(Aws::String&& value) { m_streamName = std::move(value); }
57 
61  inline void SetStreamName(const char* value) { m_streamName.assign(value); }
62 
66  inline EnableEnhancedMonitoringResult& WithStreamName(const Aws::String& value) { SetStreamName(value); return *this;}
67 
71  inline EnableEnhancedMonitoringResult& WithStreamName(Aws::String&& value) { SetStreamName(std::move(value)); return *this;}
72 
76  inline EnableEnhancedMonitoringResult& WithStreamName(const char* value) { SetStreamName(value); return *this;}
77 
78 
83  inline const Aws::Vector<MetricsName>& GetCurrentShardLevelMetrics() const{ return m_currentShardLevelMetrics; }
84 
89  inline void SetCurrentShardLevelMetrics(const Aws::Vector<MetricsName>& value) { m_currentShardLevelMetrics = value; }
90 
95  inline void SetCurrentShardLevelMetrics(Aws::Vector<MetricsName>&& value) { m_currentShardLevelMetrics = std::move(value); }
96 
101  inline EnableEnhancedMonitoringResult& WithCurrentShardLevelMetrics(const Aws::Vector<MetricsName>& value) { SetCurrentShardLevelMetrics(value); return *this;}
102 
107  inline EnableEnhancedMonitoringResult& WithCurrentShardLevelMetrics(Aws::Vector<MetricsName>&& value) { SetCurrentShardLevelMetrics(std::move(value)); return *this;}
108 
113  inline EnableEnhancedMonitoringResult& AddCurrentShardLevelMetrics(const MetricsName& value) { m_currentShardLevelMetrics.push_back(value); return *this; }
114 
119  inline EnableEnhancedMonitoringResult& AddCurrentShardLevelMetrics(MetricsName&& value) { m_currentShardLevelMetrics.push_back(std::move(value)); return *this; }
120 
121 
126  inline const Aws::Vector<MetricsName>& GetDesiredShardLevelMetrics() const{ return m_desiredShardLevelMetrics; }
127 
132  inline void SetDesiredShardLevelMetrics(const Aws::Vector<MetricsName>& value) { m_desiredShardLevelMetrics = value; }
133 
138  inline void SetDesiredShardLevelMetrics(Aws::Vector<MetricsName>&& value) { m_desiredShardLevelMetrics = std::move(value); }
139 
144  inline EnableEnhancedMonitoringResult& WithDesiredShardLevelMetrics(const Aws::Vector<MetricsName>& value) { SetDesiredShardLevelMetrics(value); return *this;}
145 
150  inline EnableEnhancedMonitoringResult& WithDesiredShardLevelMetrics(Aws::Vector<MetricsName>&& value) { SetDesiredShardLevelMetrics(std::move(value)); return *this;}
151 
156  inline EnableEnhancedMonitoringResult& AddDesiredShardLevelMetrics(const MetricsName& value) { m_desiredShardLevelMetrics.push_back(value); return *this; }
157 
162  inline EnableEnhancedMonitoringResult& AddDesiredShardLevelMetrics(MetricsName&& value) { m_desiredShardLevelMetrics.push_back(std::move(value)); return *this; }
163 
164  private:
165 
166  Aws::String m_streamName;
167 
168  Aws::Vector<MetricsName> m_currentShardLevelMetrics;
169 
170  Aws::Vector<MetricsName> m_desiredShardLevelMetrics;
171  };
172 
173 } // namespace Model
174 } // namespace Kinesis
175 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::GetCurrentShardLevelMetrics
const Aws::Vector< MetricsName > & GetCurrentShardLevelMetrics() const
Definition: EnableEnhancedMonitoringResult.h:83
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::WithCurrentShardLevelMetrics
EnableEnhancedMonitoringResult & WithCurrentShardLevelMetrics(Aws::Vector< MetricsName > &&value)
Definition: EnableEnhancedMonitoringResult.h:107
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::operator=
EnableEnhancedMonitoringResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::AddDesiredShardLevelMetrics
EnableEnhancedMonitoringResult & AddDesiredShardLevelMetrics(MetricsName &&value)
Definition: EnableEnhancedMonitoringResult.h:162
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::GetDesiredShardLevelMetrics
const Aws::Vector< MetricsName > & GetDesiredShardLevelMetrics() const
Definition: EnableEnhancedMonitoringResult.h:126
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::WithStreamName
EnableEnhancedMonitoringResult & WithStreamName(const char *value)
Definition: EnableEnhancedMonitoringResult.h:76
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::WithStreamName
EnableEnhancedMonitoringResult & WithStreamName(Aws::String &&value)
Definition: EnableEnhancedMonitoringResult.h:71
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::SetDesiredShardLevelMetrics
void SetDesiredShardLevelMetrics(const Aws::Vector< MetricsName > &value)
Definition: EnableEnhancedMonitoringResult.h:132
AWSVector.h
AWS_KINESIS_API
#define AWS_KINESIS_API
Definition: Kinesis_EXPORTS.h:28
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::WithCurrentShardLevelMetrics
EnableEnhancedMonitoringResult & WithCurrentShardLevelMetrics(const Aws::Vector< MetricsName > &value)
Definition: EnableEnhancedMonitoringResult.h:101
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::EnableEnhancedMonitoringResult
EnableEnhancedMonitoringResult()
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::EnableEnhancedMonitoringResult
EnableEnhancedMonitoringResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWSString.h
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::SetCurrentShardLevelMetrics
void SetCurrentShardLevelMetrics(Aws::Vector< MetricsName > &&value)
Definition: EnableEnhancedMonitoringResult.h:95
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::SetStreamName
void SetStreamName(Aws::String &&value)
Definition: EnableEnhancedMonitoringResult.h:56
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::GetStreamName
const Aws::String & GetStreamName() const
Definition: EnableEnhancedMonitoringResult.h:46
Kinesis_EXPORTS.h
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::SetDesiredShardLevelMetrics
void SetDesiredShardLevelMetrics(Aws::Vector< MetricsName > &&value)
Definition: EnableEnhancedMonitoringResult.h:138
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::WithStreamName
EnableEnhancedMonitoringResult & WithStreamName(const Aws::String &value)
Definition: EnableEnhancedMonitoringResult.h:66
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::AddDesiredShardLevelMetrics
EnableEnhancedMonitoringResult & AddDesiredShardLevelMetrics(const MetricsName &value)
Definition: EnableEnhancedMonitoringResult.h:156
Aws
Definition: AccessManagementClient.h:15
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::SetStreamName
void SetStreamName(const Aws::String &value)
Definition: EnableEnhancedMonitoringResult.h:51
MetricsName.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::WithDesiredShardLevelMetrics
EnableEnhancedMonitoringResult & WithDesiredShardLevelMetrics(const Aws::Vector< MetricsName > &value)
Definition: EnableEnhancedMonitoringResult.h:144
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::AddCurrentShardLevelMetrics
EnableEnhancedMonitoringResult & AddCurrentShardLevelMetrics(MetricsName &&value)
Definition: EnableEnhancedMonitoringResult.h:119
Aws::Kinesis::Model::MetricsName
MetricsName
Definition: MetricsName.h:17
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::SetCurrentShardLevelMetrics
void SetCurrentShardLevelMetrics(const Aws::Vector< MetricsName > &value)
Definition: EnableEnhancedMonitoringResult.h:89
Aws::Kinesis::Model::EnableEnhancedMonitoringResult
Definition: EnableEnhancedMonitoringResult.h:36
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::WithDesiredShardLevelMetrics
EnableEnhancedMonitoringResult & WithDesiredShardLevelMetrics(Aws::Vector< MetricsName > &&value)
Definition: EnableEnhancedMonitoringResult.h:150
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::SetStreamName
void SetStreamName(const char *value)
Definition: EnableEnhancedMonitoringResult.h:61
Aws::Kinesis::Model::EnableEnhancedMonitoringResult::AddCurrentShardLevelMetrics
EnableEnhancedMonitoringResult & AddCurrentShardLevelMetrics(const MetricsName &value)
Definition: EnableEnhancedMonitoringResult.h:113