AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
BudgetActionToAdd.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 BudgetActionToAdd() = default;
36 AWS_DEADLINE_API BudgetActionToAdd(Aws::Utils::Json::JsonView jsonValue);
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 BudgetActionToAdd& 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 BudgetActionToAdd& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
60
62
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template<typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
72 template<typename DescriptionT = Aws::String>
73 BudgetActionToAdd& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
75 private:
76
78 bool m_typeHasBeenSet = false;
79
80 double m_thresholdPercentage{0.0};
81 bool m_thresholdPercentageHasBeenSet = false;
82
83 Aws::String m_description;
84 bool m_descriptionHasBeenSet = false;
85 };
86
87} // namespace Model
88} // namespace deadline
89} // 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