AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResponseBudgetAction.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/model/BudgetActionType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 deadline
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_DEADLINE_API ResponseBudgetAction();
38 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const BudgetActionType& GetType() const{ return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(const BudgetActionType& value) { m_typeHasBeenSet = true; m_type = value; }
48 inline void SetType(BudgetActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
49 inline ResponseBudgetAction& WithType(const BudgetActionType& value) { SetType(value); return *this;}
50 inline ResponseBudgetAction& WithType(BudgetActionType&& value) { SetType(std::move(value)); return *this;}
52
54
57 inline double GetThresholdPercentage() const{ return m_thresholdPercentage; }
58 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
59 inline void SetThresholdPercentage(double value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; }
60 inline ResponseBudgetAction& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
62
64
69 inline const Aws::String& GetDescription() const{ return m_description; }
70 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
71 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
72 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
73 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
74 inline ResponseBudgetAction& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
75 inline ResponseBudgetAction& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
76 inline ResponseBudgetAction& WithDescription(const char* value) { SetDescription(value); return *this;}
78 private:
79
80 BudgetActionType m_type;
81 bool m_typeHasBeenSet = false;
82
83 double m_thresholdPercentage;
84 bool m_thresholdPercentageHasBeenSet = false;
85
86 Aws::String m_description;
87 bool m_descriptionHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace deadline
92} // namespace Aws
ResponseBudgetAction & WithDescription(Aws::String &&value)
const BudgetActionType & GetType() const
ResponseBudgetAction & WithDescription(const Aws::String &value)
ResponseBudgetAction & WithDescription(const char *value)
AWS_DEADLINE_API ResponseBudgetAction(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(const Aws::String &value)
ResponseBudgetAction & WithType(const BudgetActionType &value)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseBudgetAction & WithThresholdPercentage(double value)
AWS_DEADLINE_API ResponseBudgetAction & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetType(const BudgetActionType &value)
ResponseBudgetAction & WithType(BudgetActionType &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue