AWS SDK for C++

AWS SDK for C++ Version 1.11.937

Loading...
Searching...
No Matches
AccessBudget.h
1
6#pragma once
7#include <aws/cleanroomsml/CleanRoomsML_EXPORTS.h>
8#include <aws/cleanroomsml/model/AccessBudgetDetails.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CleanRoomsML {
22namespace Model {
23
31 public:
32 AWS_CLEANROOMSML_API AccessBudget() = default;
33 AWS_CLEANROOMSML_API AccessBudget(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CLEANROOMSML_API AccessBudget& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
42 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
43 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
44 template <typename ResourceArnT = Aws::String>
45 void SetResourceArn(ResourceArnT&& value) {
46 m_resourceArnHasBeenSet = true;
47 m_resourceArn = std::forward<ResourceArnT>(value);
48 }
49 template <typename ResourceArnT = Aws::String>
50 AccessBudget& WithResourceArn(ResourceArnT&& value) {
51 SetResourceArn(std::forward<ResourceArnT>(value));
52 return *this;
53 }
55
57
61 inline const Aws::Vector<AccessBudgetDetails>& GetDetails() const { return m_details; }
62 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
63 template <typename DetailsT = Aws::Vector<AccessBudgetDetails>>
64 void SetDetails(DetailsT&& value) {
65 m_detailsHasBeenSet = true;
66 m_details = std::forward<DetailsT>(value);
67 }
68 template <typename DetailsT = Aws::Vector<AccessBudgetDetails>>
69 AccessBudget& WithDetails(DetailsT&& value) {
70 SetDetails(std::forward<DetailsT>(value));
71 return *this;
72 }
73 template <typename DetailsT = AccessBudgetDetails>
74 AccessBudget& AddDetails(DetailsT&& value) {
75 m_detailsHasBeenSet = true;
76 m_details.emplace_back(std::forward<DetailsT>(value));
77 return *this;
78 }
80
82
86 inline int GetAggregateRemainingBudget() const { return m_aggregateRemainingBudget; }
87 inline bool AggregateRemainingBudgetHasBeenSet() const { return m_aggregateRemainingBudgetHasBeenSet; }
88 inline void SetAggregateRemainingBudget(int value) {
89 m_aggregateRemainingBudgetHasBeenSet = true;
90 m_aggregateRemainingBudget = value;
91 }
94 return *this;
95 }
97 private:
98 Aws::String m_resourceArn;
99
101
102 int m_aggregateRemainingBudget{0};
103 bool m_resourceArnHasBeenSet = false;
104 bool m_detailsHasBeenSet = false;
105 bool m_aggregateRemainingBudgetHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace CleanRoomsML
110} // namespace Aws
const Aws::Vector< AccessBudgetDetails > & GetDetails() const
AWS_CLEANROOMSML_API AccessBudget(Aws::Utils::Json::JsonView jsonValue)
AWS_CLEANROOMSML_API AccessBudget & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceArn() const
AccessBudget & WithAggregateRemainingBudget(int value)
void SetResourceArn(ResourceArnT &&value)
AWS_CLEANROOMSML_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CLEANROOMSML_API AccessBudget()=default
AccessBudget & WithDetails(DetailsT &&value)
AccessBudget & AddDetails(DetailsT &&value)
AccessBudget & WithResourceArn(ResourceArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue