AWS SDK for C++

AWS SDK for C++ Version 1.11.742

Loading...
Searching...
No Matches
BudgetParameter.h
1
6#pragma once
7#include <aws/cleanrooms/CleanRooms_EXPORTS.h>
8#include <aws/cleanrooms/model/AccessBudgetType.h>
9#include <aws/cleanrooms/model/AutoRefreshMode.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CleanRooms {
21namespace Model {
22
30 public:
31 AWS_CLEANROOMS_API BudgetParameter() = default;
32 AWS_CLEANROOMS_API BudgetParameter(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline AccessBudgetType GetType() const { return m_type; }
41 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
42 inline void SetType(AccessBudgetType value) {
43 m_typeHasBeenSet = true;
44 m_type = value;
45 }
47 SetType(value);
48 return *this;
49 }
51
53
56 inline int GetBudget() const { return m_budget; }
57 inline bool BudgetHasBeenSet() const { return m_budgetHasBeenSet; }
58 inline void SetBudget(int value) {
59 m_budgetHasBeenSet = true;
60 m_budget = value;
61 }
62 inline BudgetParameter& WithBudget(int value) {
63 SetBudget(value);
64 return *this;
65 }
67
69
73 inline AutoRefreshMode GetAutoRefresh() const { return m_autoRefresh; }
74 inline bool AutoRefreshHasBeenSet() const { return m_autoRefreshHasBeenSet; }
75 inline void SetAutoRefresh(AutoRefreshMode value) {
76 m_autoRefreshHasBeenSet = true;
77 m_autoRefresh = value;
78 }
80 SetAutoRefresh(value);
81 return *this;
82 }
84 private:
86
87 int m_budget{0};
88
90 bool m_typeHasBeenSet = false;
91 bool m_budgetHasBeenSet = false;
92 bool m_autoRefreshHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace CleanRooms
97} // namespace Aws
AWS_CLEANROOMS_API BudgetParameter()=default
BudgetParameter & WithType(AccessBudgetType value)
BudgetParameter & WithAutoRefresh(AutoRefreshMode value)
BudgetParameter & WithBudget(int value)
void SetAutoRefresh(AutoRefreshMode value)
AWS_CLEANROOMS_API BudgetParameter & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CLEANROOMS_API BudgetParameter(Aws::Utils::Json::JsonView jsonValue)
AWS_CLEANROOMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetType(AccessBudgetType value)
Aws::Utils::Json::JsonValue JsonValue