AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/forecast/ForecastService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/forecast/model/Operation.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ForecastService
23{
24namespace Model
25{
26
39 class Action
40 {
41 public:
42 AWS_FORECASTSERVICE_API Action();
43 AWS_FORECASTSERVICE_API Action(Aws::Utils::Json::JsonView jsonValue);
44 AWS_FORECASTSERVICE_API Action& operator=(Aws::Utils::Json::JsonView jsonValue);
45 AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
46
47
49
53 inline const Aws::String& GetAttributeName() const{ return m_attributeName; }
54 inline bool AttributeNameHasBeenSet() const { return m_attributeNameHasBeenSet; }
55 inline void SetAttributeName(const Aws::String& value) { m_attributeNameHasBeenSet = true; m_attributeName = value; }
56 inline void SetAttributeName(Aws::String&& value) { m_attributeNameHasBeenSet = true; m_attributeName = std::move(value); }
57 inline void SetAttributeName(const char* value) { m_attributeNameHasBeenSet = true; m_attributeName.assign(value); }
58 inline Action& WithAttributeName(const Aws::String& value) { SetAttributeName(value); return *this;}
59 inline Action& WithAttributeName(Aws::String&& value) { SetAttributeName(std::move(value)); return *this;}
60 inline Action& WithAttributeName(const char* value) { SetAttributeName(value); return *this;}
62
64
74 inline const Operation& GetOperation() const{ return m_operation; }
75 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
76 inline void SetOperation(const Operation& value) { m_operationHasBeenSet = true; m_operation = value; }
77 inline void SetOperation(Operation&& value) { m_operationHasBeenSet = true; m_operation = std::move(value); }
78 inline Action& WithOperation(const Operation& value) { SetOperation(value); return *this;}
79 inline Action& WithOperation(Operation&& value) { SetOperation(std::move(value)); return *this;}
81
83
86 inline double GetValue() const{ return m_value; }
87 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
88 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
89 inline Action& WithValue(double value) { SetValue(value); return *this;}
91 private:
92
93 Aws::String m_attributeName;
94 bool m_attributeNameHasBeenSet = false;
95
96 Operation m_operation;
97 bool m_operationHasBeenSet = false;
98
99 double m_value;
100 bool m_valueHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace ForecastService
105} // namespace Aws
void SetOperation(const Operation &value)
Definition Action.h:76
Action & WithAttributeName(const Aws::String &value)
Definition Action.h:58
const Operation & GetOperation() const
Definition Action.h:74
void SetValue(double value)
Definition Action.h:88
Action & WithOperation(Operation &&value)
Definition Action.h:79
const Aws::String & GetAttributeName() const
Definition Action.h:53
void SetAttributeName(Aws::String &&value)
Definition Action.h:56
AWS_FORECASTSERVICE_API Action()
AWS_FORECASTSERVICE_API Action(Aws::Utils::Json::JsonView jsonValue)
Action & WithValue(double value)
Definition Action.h:89
AWS_FORECASTSERVICE_API Action & operator=(Aws::Utils::Json::JsonView jsonValue)
Action & WithOperation(const Operation &value)
Definition Action.h:78
void SetAttributeName(const Aws::String &value)
Definition Action.h:55
AWS_FORECASTSERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttributeName(const char *value)
Definition Action.h:57
void SetOperation(Operation &&value)
Definition Action.h:77
Action & WithAttributeName(const char *value)
Definition Action.h:60
Action & WithAttributeName(Aws::String &&value)
Definition Action.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue