AWS SDK for C++

AWS SDK for C++ Version 1.11.765

Loading...
Searching...
No Matches
BudgetActionToAdd.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 BudgetActionToAdd() = default;
31 AWS_DEADLINE_API BudgetActionToAdd(Aws::Utils::Json::JsonView jsonValue);
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
74 inline const Aws::String& GetDescription() const { return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 template <typename DescriptionT = Aws::String>
77 void SetDescription(DescriptionT&& value) {
78 m_descriptionHasBeenSet = true;
79 m_description = std::forward<DescriptionT>(value);
80 }
81 template <typename DescriptionT = Aws::String>
82 BudgetActionToAdd& WithDescription(DescriptionT&& value) {
83 SetDescription(std::forward<DescriptionT>(value));
84 return *this;
85 }
87 private:
89
90 double m_thresholdPercentage{0.0};
91
92 Aws::String m_description;
93 bool m_typeHasBeenSet = false;
94 bool m_thresholdPercentageHasBeenSet = false;
95 bool m_descriptionHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace deadline
100} // namespace Aws
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DEADLINE_API BudgetActionToAdd(Aws::Utils::Json::JsonView jsonValue)
void SetType(BudgetActionType value)
AWS_DEADLINE_API BudgetActionToAdd()=default
BudgetActionToAdd & WithThresholdPercentage(double value)
AWS_DEADLINE_API BudgetActionToAdd & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
BudgetActionToAdd & WithDescription(DescriptionT &&value)
BudgetActionToAdd & WithType(BudgetActionType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue