AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UsageAccountResult.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/guardduty/model/Total.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GUARDDUTY_API UsageAccountResult();
37 AWS_GUARDDUTY_API UsageAccountResult(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountId() const{ return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
49 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
50 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
51 inline UsageAccountResult& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
52 inline UsageAccountResult& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
53 inline UsageAccountResult& WithAccountId(const char* value) { SetAccountId(value); return *this;}
55
57
60 inline const Total& GetTotal() const{ return m_total; }
61 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
62 inline void SetTotal(const Total& value) { m_totalHasBeenSet = true; m_total = value; }
63 inline void SetTotal(Total&& value) { m_totalHasBeenSet = true; m_total = std::move(value); }
64 inline UsageAccountResult& WithTotal(const Total& value) { SetTotal(value); return *this;}
65 inline UsageAccountResult& WithTotal(Total&& value) { SetTotal(std::move(value)); return *this;}
67 private:
68
69 Aws::String m_accountId;
70 bool m_accountIdHasBeenSet = false;
71
72 Total m_total;
73 bool m_totalHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace GuardDuty
78} // namespace Aws
AWS_GUARDDUTY_API UsageAccountResult(Aws::Utils::Json::JsonView jsonValue)
UsageAccountResult & WithTotal(Total &&value)
AWS_GUARDDUTY_API UsageAccountResult & operator=(Aws::Utils::Json::JsonView jsonValue)
UsageAccountResult & WithAccountId(Aws::String &&value)
UsageAccountResult & WithAccountId(const char *value)
UsageAccountResult & WithTotal(const Total &value)
UsageAccountResult & WithAccountId(const Aws::String &value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAccountId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue