AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
Dimension.h
1
6#pragma once
7#include <aws/marketplace-agreement/AgreementService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AgreementService
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_AGREEMENTSERVICE_API Dimension() = default;
36 AWS_AGREEMENTSERVICE_API Dimension(Aws::Utils::Json::JsonView jsonValue);
37 AWS_AGREEMENTSERVICE_API Dimension& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetDimensionKey() const { return m_dimensionKey; }
46 inline bool DimensionKeyHasBeenSet() const { return m_dimensionKeyHasBeenSet; }
47 template<typename DimensionKeyT = Aws::String>
48 void SetDimensionKey(DimensionKeyT&& value) { m_dimensionKeyHasBeenSet = true; m_dimensionKey = std::forward<DimensionKeyT>(value); }
49 template<typename DimensionKeyT = Aws::String>
50 Dimension& WithDimensionKey(DimensionKeyT&& value) { SetDimensionKey(std::forward<DimensionKeyT>(value)); return *this;}
52
54
62 inline int GetDimensionValue() const { return m_dimensionValue; }
63 inline bool DimensionValueHasBeenSet() const { return m_dimensionValueHasBeenSet; }
64 inline void SetDimensionValue(int value) { m_dimensionValueHasBeenSet = true; m_dimensionValue = value; }
65 inline Dimension& WithDimensionValue(int value) { SetDimensionValue(value); return *this;}
67 private:
68
69 Aws::String m_dimensionKey;
70 bool m_dimensionKeyHasBeenSet = false;
71
72 int m_dimensionValue{0};
73 bool m_dimensionValueHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace AgreementService
78} // namespace Aws
AWS_AGREEMENTSERVICE_API Dimension & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDimensionKey() const
Definition Dimension.h:45
AWS_AGREEMENTSERVICE_API Dimension()=default
AWS_AGREEMENTSERVICE_API Dimension(Aws::Utils::Json::JsonView jsonValue)
Dimension & WithDimensionKey(DimensionKeyT &&value)
Definition Dimension.h:50
Dimension & WithDimensionValue(int value)
Definition Dimension.h:65
void SetDimensionKey(DimensionKeyT &&value)
Definition Dimension.h:48
AWS_AGREEMENTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue