AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DimensionContribution.h
1
6#pragma once
7#include <aws/lookoutmetrics/LookoutMetrics_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lookoutmetrics/model/DimensionValueContribution.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LookoutMetrics
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LOOKOUTMETRICS_API DimensionContribution();
38 AWS_LOOKOUTMETRICS_API DimensionContribution(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetDimensionName() const{ return m_dimensionName; }
48 inline bool DimensionNameHasBeenSet() const { return m_dimensionNameHasBeenSet; }
49 inline void SetDimensionName(const Aws::String& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = value; }
50 inline void SetDimensionName(Aws::String&& value) { m_dimensionNameHasBeenSet = true; m_dimensionName = std::move(value); }
51 inline void SetDimensionName(const char* value) { m_dimensionNameHasBeenSet = true; m_dimensionName.assign(value); }
52 inline DimensionContribution& WithDimensionName(const Aws::String& value) { SetDimensionName(value); return *this;}
53 inline DimensionContribution& WithDimensionName(Aws::String&& value) { SetDimensionName(std::move(value)); return *this;}
54 inline DimensionContribution& WithDimensionName(const char* value) { SetDimensionName(value); return *this;}
56
58
61 inline const Aws::Vector<DimensionValueContribution>& GetDimensionValueContributionList() const{ return m_dimensionValueContributionList; }
62 inline bool DimensionValueContributionListHasBeenSet() const { return m_dimensionValueContributionListHasBeenSet; }
63 inline void SetDimensionValueContributionList(const Aws::Vector<DimensionValueContribution>& value) { m_dimensionValueContributionListHasBeenSet = true; m_dimensionValueContributionList = value; }
64 inline void SetDimensionValueContributionList(Aws::Vector<DimensionValueContribution>&& value) { m_dimensionValueContributionListHasBeenSet = true; m_dimensionValueContributionList = std::move(value); }
67 inline DimensionContribution& AddDimensionValueContributionList(const DimensionValueContribution& value) { m_dimensionValueContributionListHasBeenSet = true; m_dimensionValueContributionList.push_back(value); return *this; }
68 inline DimensionContribution& AddDimensionValueContributionList(DimensionValueContribution&& value) { m_dimensionValueContributionListHasBeenSet = true; m_dimensionValueContributionList.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_dimensionName;
73 bool m_dimensionNameHasBeenSet = false;
74
75 Aws::Vector<DimensionValueContribution> m_dimensionValueContributionList;
76 bool m_dimensionValueContributionListHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace LookoutMetrics
81} // namespace Aws
DimensionContribution & WithDimensionValueContributionList(Aws::Vector< DimensionValueContribution > &&value)
DimensionContribution & AddDimensionValueContributionList(const DimensionValueContribution &value)
AWS_LOOKOUTMETRICS_API Aws::Utils::Json::JsonValue Jsonize() const
DimensionContribution & AddDimensionValueContributionList(DimensionValueContribution &&value)
void SetDimensionValueContributionList(Aws::Vector< DimensionValueContribution > &&value)
DimensionContribution & WithDimensionName(const char *value)
DimensionContribution & WithDimensionValueContributionList(const Aws::Vector< DimensionValueContribution > &value)
DimensionContribution & WithDimensionName(const Aws::String &value)
void SetDimensionValueContributionList(const Aws::Vector< DimensionValueContribution > &value)
const Aws::Vector< DimensionValueContribution > & GetDimensionValueContributionList() const
AWS_LOOKOUTMETRICS_API DimensionContribution & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LOOKOUTMETRICS_API DimensionContribution(Aws::Utils::Json::JsonView jsonValue)
DimensionContribution & WithDimensionName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue