AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UsageRecord.h
1
6#pragma once
7#include <aws/macie2/Macie2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/macie2/model/UsageByAccount.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 UsageRecord();
39 AWS_MACIE2_API UsageRecord(Aws::Utils::Json::JsonView jsonValue);
41 AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
49 inline const Aws::String& GetAccountId() const{ return m_accountId; }
50 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
51 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
52 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
53 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
54 inline UsageRecord& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
55 inline UsageRecord& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
56 inline UsageRecord& WithAccountId(const char* value) { SetAccountId(value); return *this;}
58
60
66 inline const Aws::Utils::DateTime& GetAutomatedDiscoveryFreeTrialStartDate() const{ return m_automatedDiscoveryFreeTrialStartDate; }
67 inline bool AutomatedDiscoveryFreeTrialStartDateHasBeenSet() const { return m_automatedDiscoveryFreeTrialStartDateHasBeenSet; }
68 inline void SetAutomatedDiscoveryFreeTrialStartDate(const Aws::Utils::DateTime& value) { m_automatedDiscoveryFreeTrialStartDateHasBeenSet = true; m_automatedDiscoveryFreeTrialStartDate = value; }
69 inline void SetAutomatedDiscoveryFreeTrialStartDate(Aws::Utils::DateTime&& value) { m_automatedDiscoveryFreeTrialStartDateHasBeenSet = true; m_automatedDiscoveryFreeTrialStartDate = std::move(value); }
73
75
79 inline const Aws::Utils::DateTime& GetFreeTrialStartDate() const{ return m_freeTrialStartDate; }
80 inline bool FreeTrialStartDateHasBeenSet() const { return m_freeTrialStartDateHasBeenSet; }
81 inline void SetFreeTrialStartDate(const Aws::Utils::DateTime& value) { m_freeTrialStartDateHasBeenSet = true; m_freeTrialStartDate = value; }
82 inline void SetFreeTrialStartDate(Aws::Utils::DateTime&& value) { m_freeTrialStartDateHasBeenSet = true; m_freeTrialStartDate = std::move(value); }
84 inline UsageRecord& WithFreeTrialStartDate(Aws::Utils::DateTime&& value) { SetFreeTrialStartDate(std::move(value)); return *this;}
86
88
93 inline const Aws::Vector<UsageByAccount>& GetUsage() const{ return m_usage; }
94 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
95 inline void SetUsage(const Aws::Vector<UsageByAccount>& value) { m_usageHasBeenSet = true; m_usage = value; }
96 inline void SetUsage(Aws::Vector<UsageByAccount>&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); }
97 inline UsageRecord& WithUsage(const Aws::Vector<UsageByAccount>& value) { SetUsage(value); return *this;}
98 inline UsageRecord& WithUsage(Aws::Vector<UsageByAccount>&& value) { SetUsage(std::move(value)); return *this;}
99 inline UsageRecord& AddUsage(const UsageByAccount& value) { m_usageHasBeenSet = true; m_usage.push_back(value); return *this; }
100 inline UsageRecord& AddUsage(UsageByAccount&& value) { m_usageHasBeenSet = true; m_usage.push_back(std::move(value)); return *this; }
102 private:
103
104 Aws::String m_accountId;
105 bool m_accountIdHasBeenSet = false;
106
107 Aws::Utils::DateTime m_automatedDiscoveryFreeTrialStartDate;
108 bool m_automatedDiscoveryFreeTrialStartDateHasBeenSet = false;
109
110 Aws::Utils::DateTime m_freeTrialStartDate;
111 bool m_freeTrialStartDateHasBeenSet = false;
112
114 bool m_usageHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace Macie2
119} // namespace Aws
UsageRecord & WithAccountId(const char *value)
Definition UsageRecord.h:56
UsageRecord & WithUsage(Aws::Vector< UsageByAccount > &&value)
Definition UsageRecord.h:98
const Aws::String & GetAccountId() const
Definition UsageRecord.h:49
UsageRecord & WithFreeTrialStartDate(Aws::Utils::DateTime &&value)
Definition UsageRecord.h:84
void SetUsage(const Aws::Vector< UsageByAccount > &value)
Definition UsageRecord.h:95
UsageRecord & WithUsage(const Aws::Vector< UsageByAccount > &value)
Definition UsageRecord.h:97
void SetAccountId(const Aws::String &value)
Definition UsageRecord.h:51
void SetUsage(Aws::Vector< UsageByAccount > &&value)
Definition UsageRecord.h:96
AWS_MACIE2_API UsageRecord(Aws::Utils::Json::JsonView jsonValue)
void SetAutomatedDiscoveryFreeTrialStartDate(const Aws::Utils::DateTime &value)
Definition UsageRecord.h:68
UsageRecord & WithAccountId(const Aws::String &value)
Definition UsageRecord.h:54
UsageRecord & WithFreeTrialStartDate(const Aws::Utils::DateTime &value)
Definition UsageRecord.h:83
UsageRecord & AddUsage(UsageByAccount &&value)
AWS_MACIE2_API UsageRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageRecord & WithAutomatedDiscoveryFreeTrialStartDate(const Aws::Utils::DateTime &value)
Definition UsageRecord.h:70
AWS_MACIE2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetFreeTrialStartDate() const
Definition UsageRecord.h:79
void SetAccountId(Aws::String &&value)
Definition UsageRecord.h:52
void SetAccountId(const char *value)
Definition UsageRecord.h:53
UsageRecord & AddUsage(const UsageByAccount &value)
Definition UsageRecord.h:99
void SetAutomatedDiscoveryFreeTrialStartDate(Aws::Utils::DateTime &&value)
Definition UsageRecord.h:69
void SetFreeTrialStartDate(Aws::Utils::DateTime &&value)
Definition UsageRecord.h:82
UsageRecord & WithAutomatedDiscoveryFreeTrialStartDate(Aws::Utils::DateTime &&value)
Definition UsageRecord.h:71
bool FreeTrialStartDateHasBeenSet() const
Definition UsageRecord.h:80
const Aws::Utils::DateTime & GetAutomatedDiscoveryFreeTrialStartDate() const
Definition UsageRecord.h:66
UsageRecord & WithAccountId(Aws::String &&value)
Definition UsageRecord.h:55
bool AutomatedDiscoveryFreeTrialStartDateHasBeenSet() const
Definition UsageRecord.h:67
void SetFreeTrialStartDate(const Aws::Utils::DateTime &value)
Definition UsageRecord.h:81
const Aws::Vector< UsageByAccount > & GetUsage() const
Definition UsageRecord.h:93
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue