AWS SDK for C++  1.9.175
AWS SDK for C++
UsageRecord.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace Macie2
25 {
26 namespace Model
27 {
28 
36  {
37  public:
42 
43 
48  inline const Aws::String& GetAccountId() const{ return m_accountId; }
49 
54  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
55 
60  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
61 
66  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
67 
72  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
73 
78  inline UsageRecord& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
79 
84  inline UsageRecord& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
85 
90  inline UsageRecord& WithAccountId(const char* value) { SetAccountId(value); return *this;}
91 
92 
97  inline const Aws::Utils::DateTime& GetFreeTrialStartDate() const{ return m_freeTrialStartDate; }
98 
103  inline bool FreeTrialStartDateHasBeenSet() const { return m_freeTrialStartDateHasBeenSet; }
104 
109  inline void SetFreeTrialStartDate(const Aws::Utils::DateTime& value) { m_freeTrialStartDateHasBeenSet = true; m_freeTrialStartDate = value; }
110 
115  inline void SetFreeTrialStartDate(Aws::Utils::DateTime&& value) { m_freeTrialStartDateHasBeenSet = true; m_freeTrialStartDate = std::move(value); }
116 
121  inline UsageRecord& WithFreeTrialStartDate(const Aws::Utils::DateTime& value) { SetFreeTrialStartDate(value); return *this;}
122 
127  inline UsageRecord& WithFreeTrialStartDate(Aws::Utils::DateTime&& value) { SetFreeTrialStartDate(std::move(value)); return *this;}
128 
129 
135  inline const Aws::Vector<UsageByAccount>& GetUsage() const{ return m_usage; }
136 
142  inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
143 
149  inline void SetUsage(const Aws::Vector<UsageByAccount>& value) { m_usageHasBeenSet = true; m_usage = value; }
150 
156  inline void SetUsage(Aws::Vector<UsageByAccount>&& value) { m_usageHasBeenSet = true; m_usage = std::move(value); }
157 
163  inline UsageRecord& WithUsage(const Aws::Vector<UsageByAccount>& value) { SetUsage(value); return *this;}
164 
170  inline UsageRecord& WithUsage(Aws::Vector<UsageByAccount>&& value) { SetUsage(std::move(value)); return *this;}
171 
177  inline UsageRecord& AddUsage(const UsageByAccount& value) { m_usageHasBeenSet = true; m_usage.push_back(value); return *this; }
178 
184  inline UsageRecord& AddUsage(UsageByAccount&& value) { m_usageHasBeenSet = true; m_usage.push_back(std::move(value)); return *this; }
185 
186  private:
187 
188  Aws::String m_accountId;
189  bool m_accountIdHasBeenSet;
190 
191  Aws::Utils::DateTime m_freeTrialStartDate;
192  bool m_freeTrialStartDateHasBeenSet;
193 
195  bool m_usageHasBeenSet;
196  };
197 
198 } // namespace Model
199 } // namespace Macie2
200 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::Macie2::Model::UsageRecord::AddUsage
UsageRecord & AddUsage(UsageByAccount &&value)
Definition: UsageRecord.h:184
AWS_MACIE2_API
#define AWS_MACIE2_API
Definition: Macie2_EXPORTS.h:28
Aws::Macie2::Model::UsageRecord::GetFreeTrialStartDate
const Aws::Utils::DateTime & GetFreeTrialStartDate() const
Definition: UsageRecord.h:97
Aws::Macie2::Model::UsageRecord::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: UsageRecord.h:66
Aws::Macie2::Model::UsageRecord::operator=
UsageRecord & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::Macie2::Model::UsageRecord::AddUsage
UsageRecord & AddUsage(const UsageByAccount &value)
Definition: UsageRecord.h:177
Aws::Macie2::Model::UsageRecord::WithFreeTrialStartDate
UsageRecord & WithFreeTrialStartDate(Aws::Utils::DateTime &&value)
Definition: UsageRecord.h:127
Aws::Macie2::Model::UsageRecord::SetUsage
void SetUsage(Aws::Vector< UsageByAccount > &&value)
Definition: UsageRecord.h:156
Aws::Macie2::Model::UsageByAccount
Definition: UsageByAccount.h:36
Aws::Macie2::Model::UsageRecord::UsageRecord
UsageRecord()
DateTime.h
Aws::Macie2::Model::UsageRecord::SetFreeTrialStartDate
void SetFreeTrialStartDate(const Aws::Utils::DateTime &value)
Definition: UsageRecord.h:109
Macie2_EXPORTS.h
Aws::Macie2::Model::UsageRecord::FreeTrialStartDateHasBeenSet
bool FreeTrialStartDateHasBeenSet() const
Definition: UsageRecord.h:103
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Macie2::Model::UsageRecord::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
AWSVector.h
Aws::Macie2::Model::UsageRecord
Definition: UsageRecord.h:36
Aws::Macie2::Model::UsageRecord::SetAccountId
void SetAccountId(const char *value)
Definition: UsageRecord.h:72
Aws::Macie2::Model::UsageRecord::WithAccountId
UsageRecord & WithAccountId(Aws::String &&value)
Definition: UsageRecord.h:84
Aws::Macie2::Model::UsageRecord::WithUsage
UsageRecord & WithUsage(Aws::Vector< UsageByAccount > &&value)
Definition: UsageRecord.h:170
Aws::Macie2::Model::UsageRecord::SetFreeTrialStartDate
void SetFreeTrialStartDate(Aws::Utils::DateTime &&value)
Definition: UsageRecord.h:115
Aws::Macie2::Model::UsageRecord::WithAccountId
UsageRecord & WithAccountId(const Aws::String &value)
Definition: UsageRecord.h:78
Aws::Macie2::Model::UsageRecord::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: UsageRecord.h:60
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::Macie2::Model::UsageRecord::WithAccountId
UsageRecord & WithAccountId(const char *value)
Definition: UsageRecord.h:90
Aws::Macie2::Model::UsageRecord::GetAccountId
const Aws::String & GetAccountId() const
Definition: UsageRecord.h:48
UsageByAccount.h
Aws::Macie2::Model::UsageRecord::WithUsage
UsageRecord & WithUsage(const Aws::Vector< UsageByAccount > &value)
Definition: UsageRecord.h:163
Aws::MigrationHubStrategyRecommendations::Model::OutputFormat::NOT_SET
@ NOT_SET
Aws
Definition: AccessManagementClient.h:15
Aws::Macie2::Model::UsageRecord::GetUsage
const Aws::Vector< UsageByAccount > & GetUsage() const
Definition: UsageRecord.h:135
Aws::Macie2::Model::UsageRecord::UsageHasBeenSet
bool UsageHasBeenSet() const
Definition: UsageRecord.h:142
Aws::Macie2::Model::UsageRecord::WithFreeTrialStartDate
UsageRecord & WithFreeTrialStartDate(const Aws::Utils::DateTime &value)
Definition: UsageRecord.h:121
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Macie2::Model::UsageRecord::SetUsage
void SetUsage(const Aws::Vector< UsageByAccount > &value)
Definition: UsageRecord.h:149
Aws::Macie2::Model::UsageRecord::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: UsageRecord.h:54
Aws::Macie2::Model::UsageRecord::UsageRecord
UsageRecord(Aws::Utils::Json::JsonView jsonValue)