AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/forecast/ForecastService_EXPORTS.h>
9#include <aws/forecast/model/Operation.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ForecastService {
21namespace Model {
22
35class Action {
36 public:
37 AWS_FORECASTSERVICE_API Action() = default;
38 AWS_FORECASTSERVICE_API Action(Aws::Utils::Json::JsonView jsonValue);
39 AWS_FORECASTSERVICE_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::String& GetAttributeName() const { return m_attributeName; }
48 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
49 template <typename AttributeNameT = Aws::String>
50 void SetAttributeName(AttributeNameT&& value) {
51 m_attributeNameHasBeenSet = true;
52 m_attributeName = std::forward<AttributeNameT>(value);
53 }
54 template <typename AttributeNameT = Aws::String>
55 Action& WithAttributeName(AttributeNameT&& value) {
56 SetAttributeName(std::forward<AttributeNameT>(value));
57 return *this;
58 }
60
62
72 inline Operation GetOperation() const { return m_operation; }
73 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
74 inline void SetOperation(Operation value) {
75 m_operationHasBeenSet = true;
76 m_operation = value;
77 }
79 SetOperation(value);
80 return *this;
81 }
83
85
88 inline double GetValue() const { return m_value; }
89 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
90 inline void SetValue(double value) {
91 m_valueHasBeenSet = true;
92 m_value = value;
93 }
94 inline Action& WithValue(double value) {
95 SetValue(value);
96 return *this;
97 }
99 private:
100 Aws::String m_attributeName;
101
102 Operation m_operation{Operation::NOT_SET};
103
104 double m_value{0.0};
105 bool m_attributeNameHasBeenSet = false;
106 bool m_operationHasBeenSet = false;
107 bool m_valueHasBeenSet = false;
108};
109
110} // namespace Model
111} // namespace ForecastService
112} // namespace Aws
Action & WithAttributeName(AttributeNameT &&value)
Definition Action.h:55
AWS_FORECASTSERVICE_API Action()=default
void SetValue(double value)
Definition Action.h:90
const Aws::String & GetAttributeName() const
Definition Action.h:47
AWS_FORECASTSERVICE_API Action(Aws::Utils::Json::JsonView jsonValue)
Operation GetOperation() const
Definition Action.h:72
Action & WithValue(double value)
Definition Action.h:94
void SetOperation(Operation value)
Definition Action.h:74
AWS_FORECASTSERVICE_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
Action & WithOperation(Operation value)
Definition Action.h:78
void SetAttributeName(AttributeNameT &&value)
Definition Action.h:50
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue