AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
38 AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline BudgetActionType GetType() const { return m_type; }
46 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
47 inline void SetType(BudgetActionType value) { m_typeHasBeenSet = true; m_type = value; }
48 inline ResponseBudgetAction& WithType(BudgetActionType value) { SetType(value); return *this;}
50
52
55 inline double GetThresholdPercentage() const { return m_thresholdPercentage; }
56 inline bool ThresholdPercentageHasBeenSet() const { return m_thresholdPercentageHasBeenSet; }
57 inline void SetThresholdPercentage(double value) { m_thresholdPercentageHasBeenSet = true; m_thresholdPercentage = value; }
58 inline ResponseBudgetAction& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
60
62
67 inline const Aws::String& GetDescription() const { return m_description; }
68 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
69 template<typename DescriptionT = Aws::String>
70 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
71 template<typename DescriptionT = Aws::String>
72 ResponseBudgetAction& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
74 private:
75
77 bool m_typeHasBeenSet = false;
78
79 double m_thresholdPercentage{0.0};
80 bool m_thresholdPercentageHasBeenSet = false;
81
82 Aws::String m_description;
83 bool m_descriptionHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace deadline
88} // 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