AWS SDK for C++  1.9.153
AWS SDK for C++
CurrentMetricResult.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace Connect
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Dimensions& GetDimensions() const{ return m_dimensions; }
47 
51  inline bool DimensionsHasBeenSet() const { return m_dimensionsHasBeenSet; }
52 
56  inline void SetDimensions(const Dimensions& value) { m_dimensionsHasBeenSet = true; m_dimensions = value; }
57 
61  inline void SetDimensions(Dimensions&& value) { m_dimensionsHasBeenSet = true; m_dimensions = std::move(value); }
62 
66  inline CurrentMetricResult& WithDimensions(const Dimensions& value) { SetDimensions(value); return *this;}
67 
71  inline CurrentMetricResult& WithDimensions(Dimensions&& value) { SetDimensions(std::move(value)); return *this;}
72 
73 
77  inline const Aws::Vector<CurrentMetricData>& GetCollections() const{ return m_collections; }
78 
82  inline bool CollectionsHasBeenSet() const { return m_collectionsHasBeenSet; }
83 
87  inline void SetCollections(const Aws::Vector<CurrentMetricData>& value) { m_collectionsHasBeenSet = true; m_collections = value; }
88 
92  inline void SetCollections(Aws::Vector<CurrentMetricData>&& value) { m_collectionsHasBeenSet = true; m_collections = std::move(value); }
93 
97  inline CurrentMetricResult& WithCollections(const Aws::Vector<CurrentMetricData>& value) { SetCollections(value); return *this;}
98 
102  inline CurrentMetricResult& WithCollections(Aws::Vector<CurrentMetricData>&& value) { SetCollections(std::move(value)); return *this;}
103 
107  inline CurrentMetricResult& AddCollections(const CurrentMetricData& value) { m_collectionsHasBeenSet = true; m_collections.push_back(value); return *this; }
108 
112  inline CurrentMetricResult& AddCollections(CurrentMetricData&& value) { m_collectionsHasBeenSet = true; m_collections.push_back(std::move(value)); return *this; }
113 
114  private:
115 
116  Dimensions m_dimensions;
117  bool m_dimensionsHasBeenSet;
118 
119  Aws::Vector<CurrentMetricData> m_collections;
120  bool m_collectionsHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace Connect
125 } // namespace Aws
Aws::Connect::Model::CurrentMetricResult::SetCollections
void SetCollections(Aws::Vector< CurrentMetricData > &&value)
Definition: CurrentMetricResult.h:92
Aws::Connect::Model::CurrentMetricResult::SetDimensions
void SetDimensions(const Dimensions &value)
Definition: CurrentMetricResult.h:56
Aws::Connect::Model::CurrentMetricResult::CurrentMetricResult
CurrentMetricResult()
Aws::Connect::Model::CurrentMetricResult::GetCollections
const Aws::Vector< CurrentMetricData > & GetCollections() const
Definition: CurrentMetricResult.h:77
Aws::Connect::Model::CurrentMetricResult::WithDimensions
CurrentMetricResult & WithDimensions(Dimensions &&value)
Definition: CurrentMetricResult.h:71
Aws::Connect::Model::CurrentMetricResult::WithCollections
CurrentMetricResult & WithCollections(Aws::Vector< CurrentMetricData > &&value)
Definition: CurrentMetricResult.h:102
Aws::Connect::Model::Dimensions
Definition: Dimensions.h:34
Aws::Connect::Model::CurrentMetricResult
Definition: CurrentMetricResult.h:35
Aws::Connect::Model::CurrentMetricResult::SetCollections
void SetCollections(const Aws::Vector< CurrentMetricData > &value)
Definition: CurrentMetricResult.h:87
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Connect::Model::CurrentMetricResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Connect::Model::CurrentMetricResult::WithDimensions
CurrentMetricResult & WithDimensions(const Dimensions &value)
Definition: CurrentMetricResult.h:66
AWSVector.h
Aws::Connect::Model::CurrentMetricResult::CurrentMetricResult
CurrentMetricResult(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::CurrentMetricResult::AddCollections
CurrentMetricResult & AddCollections(CurrentMetricData &&value)
Definition: CurrentMetricResult.h:112
Aws::Connect::Model::CurrentMetricData
Definition: CurrentMetricData.h:32
Aws::Connect::Model::CurrentMetricResult::AddCollections
CurrentMetricResult & AddCollections(const CurrentMetricData &value)
Definition: CurrentMetricResult.h:107
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Connect::Model::CurrentMetricResult::SetDimensions
void SetDimensions(Dimensions &&value)
Definition: CurrentMetricResult.h:61
Aws::Connect::Model::CurrentMetricResult::operator=
CurrentMetricResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Connect::Model::CurrentMetricResult::DimensionsHasBeenSet
bool DimensionsHasBeenSet() const
Definition: CurrentMetricResult.h:51
CurrentMetricData.h
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Connect::Model::CurrentMetricResult::CollectionsHasBeenSet
bool CollectionsHasBeenSet() const
Definition: CurrentMetricResult.h:82
Aws::Connect::Model::CurrentMetricResult::GetDimensions
const Dimensions & GetDimensions() const
Definition: CurrentMetricResult.h:46
Dimensions.h
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Aws::Connect::Model::CurrentMetricResult::WithCollections
CurrentMetricResult & WithCollections(const Aws::Vector< CurrentMetricData > &value)
Definition: CurrentMetricResult.h:97
Connect_EXPORTS.h