AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 BudgetActionToAdd& WithType(const BudgetActionType& value) { SetType(value); return *this;}
50 inline BudgetActionToAdd& 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 BudgetActionToAdd& WithThresholdPercentage(double value) { SetThresholdPercentage(value); return *this;}
62
64
70 inline const Aws::String& GetDescription() const{ return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
73 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
74 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
75 inline BudgetActionToAdd& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
76 inline BudgetActionToAdd& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
77 inline BudgetActionToAdd& WithDescription(const char* value) { SetDescription(value); return *this;}
79 private:
80
81 BudgetActionType m_type;
82 bool m_typeHasBeenSet = false;
83
84 double m_thresholdPercentage;
85 bool m_thresholdPercentageHasBeenSet = false;
86
87 Aws::String m_description;
88 bool m_descriptionHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace deadline
93} // namespace Aws
AWS_DEADLINE_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(BudgetActionType &&value)
BudgetActionToAdd & WithType(const BudgetActionType &value)
BudgetActionToAdd & WithDescription(const Aws::String &value)
const BudgetActionType & GetType() const
AWS_DEADLINE_API BudgetActionToAdd(Aws::Utils::Json::JsonView jsonValue)
BudgetActionToAdd & WithDescription(const char *value)
BudgetActionToAdd & WithDescription(Aws::String &&value)
BudgetActionToAdd & WithType(BudgetActionType &&value)
void SetType(const BudgetActionType &value)
BudgetActionToAdd & WithThresholdPercentage(double value)
void SetDescription(const Aws::String &value)
AWS_DEADLINE_API BudgetActionToAdd & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue