AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UsageByAccount.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/macie2/model/Currency.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/macie2/model/ServiceLimit.h>
11#include <aws/macie2/model/UsageType.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace Macie2
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_MACIE2_API UsageByAccount();
39 AWS_MACIE2_API UsageByAccount(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Currency& GetCurrency() const{ return m_currency; }
50 inline bool CurrencyHasBeenSet() const { return m_currencyHasBeenSet; }
51 inline void SetCurrency(const Currency& value) { m_currencyHasBeenSet = true; m_currency = value; }
52 inline void SetCurrency(Currency&& value) { m_currencyHasBeenSet = true; m_currency = std::move(value); }
53 inline UsageByAccount& WithCurrency(const Currency& value) { SetCurrency(value); return *this;}
54 inline UsageByAccount& WithCurrency(Currency&& value) { SetCurrency(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetEstimatedCost() const{ return m_estimatedCost; }
62 inline bool EstimatedCostHasBeenSet() const { return m_estimatedCostHasBeenSet; }
63 inline void SetEstimatedCost(const Aws::String& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = value; }
64 inline void SetEstimatedCost(Aws::String&& value) { m_estimatedCostHasBeenSet = true; m_estimatedCost = std::move(value); }
65 inline void SetEstimatedCost(const char* value) { m_estimatedCostHasBeenSet = true; m_estimatedCost.assign(value); }
66 inline UsageByAccount& WithEstimatedCost(const Aws::String& value) { SetEstimatedCost(value); return *this;}
67 inline UsageByAccount& WithEstimatedCost(Aws::String&& value) { SetEstimatedCost(std::move(value)); return *this;}
68 inline UsageByAccount& WithEstimatedCost(const char* value) { SetEstimatedCost(value); return *this;}
70
72
76 inline const ServiceLimit& GetServiceLimit() const{ return m_serviceLimit; }
77 inline bool ServiceLimitHasBeenSet() const { return m_serviceLimitHasBeenSet; }
78 inline void SetServiceLimit(const ServiceLimit& value) { m_serviceLimitHasBeenSet = true; m_serviceLimit = value; }
79 inline void SetServiceLimit(ServiceLimit&& value) { m_serviceLimitHasBeenSet = true; m_serviceLimit = std::move(value); }
80 inline UsageByAccount& WithServiceLimit(const ServiceLimit& value) { SetServiceLimit(value); return *this;}
81 inline UsageByAccount& WithServiceLimit(ServiceLimit&& value) { SetServiceLimit(std::move(value)); return *this;}
83
85
92 inline const UsageType& GetType() const{ return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(const UsageType& value) { m_typeHasBeenSet = true; m_type = value; }
95 inline void SetType(UsageType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
96 inline UsageByAccount& WithType(const UsageType& value) { SetType(value); return *this;}
97 inline UsageByAccount& WithType(UsageType&& value) { SetType(std::move(value)); return *this;}
99 private:
100
101 Currency m_currency;
102 bool m_currencyHasBeenSet = false;
103
104 Aws::String m_estimatedCost;
105 bool m_estimatedCostHasBeenSet = false;
106
107 ServiceLimit m_serviceLimit;
108 bool m_serviceLimitHasBeenSet = false;
109
110 UsageType m_type;
111 bool m_typeHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace Macie2
116} // namespace Aws
void SetEstimatedCost(const Aws::String &value)
UsageByAccount & WithCurrency(const Currency &value)
const UsageType & GetType() const
void SetEstimatedCost(Aws::String &&value)
UsageByAccount & WithType(UsageType &&value)
const Currency & GetCurrency() const
AWS_MACIE2_API UsageByAccount(Aws::Utils::Json::JsonView jsonValue)
UsageByAccount & WithServiceLimit(ServiceLimit &&value)
AWS_MACIE2_API UsageByAccount & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServiceLimit(ServiceLimit &&value)
UsageByAccount & WithCurrency(Currency &&value)
void SetEstimatedCost(const char *value)
UsageByAccount & WithEstimatedCost(const Aws::String &value)
const ServiceLimit & GetServiceLimit() const
void SetType(const UsageType &value)
void SetServiceLimit(const ServiceLimit &value)
void SetCurrency(Currency &&value)
UsageByAccount & WithType(const UsageType &value)
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCurrency(const Currency &value)
UsageByAccount & WithEstimatedCost(const char *value)
UsageByAccount & WithEstimatedCost(Aws::String &&value)
void SetType(UsageType &&value)
UsageByAccount & WithServiceLimit(const ServiceLimit &value)
const Aws::String & GetEstimatedCost() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue