AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
ResponseBudgetAction.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/deadline/Deadline_EXPORTS.h>
9#include <aws/deadline/model/BudgetActionType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace deadline {
21namespace Model {
22
29 public:
30 AWS_DEADLINE_API ResponseBudgetAction() = default;
33 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline BudgetActionType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(BudgetActionType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
55 inline double GetThresholdPercentage() const { return m_thresholdPercentage; }
56 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
57 inline void SetThresholdPercentage(double value) {
58 m_thresholdPercentageHasBeenSet = true;
59 m_thresholdPercentage = value;
60 }
63 return *this;
64 }
66
68
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template <typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) {
77 m_descriptionHasBeenSet = true;
78 m_description = std::forward<DescriptionT>(value);
79 }
80 template <typename DescriptionT = Aws::String>
81 ResponseBudgetAction& WithDescription(DescriptionT&& value) {
82 SetDescription(std::forward<DescriptionT>(value));
83 return *this;
84 }
86 private:
88
89 double m_thresholdPercentage{0.0};
90
91 Aws::String m_description;
92 bool m_typeHasBeenSet = false;
93 bool m_thresholdPercentageHasBeenSet = false;
94 bool m_descriptionHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace deadline
99} // namespace Aws
ResponseBudgetAction & WithType(BudgetActionType value)
AWS_DEADLINE_API ResponseBudgetAction()=default
AWS_DEADLINE_API ResponseBudgetAction(Aws::Utils::Json::JsonView jsonValue)
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseBudgetAction & WithThresholdPercentage(double value)
ResponseBudgetAction & WithDescription(DescriptionT &&value)
AWS_DEADLINE_API ResponseBudgetAction & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue