AWS SDK for C++  1.9.103
AWS SDK for C++
UsageAccountResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace GuardDuty
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetAccountId() const{ return m_accountId; }
46 
50  inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
51 
55  inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
56 
60  inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
61 
65  inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
66 
70  inline UsageAccountResult& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
71 
75  inline UsageAccountResult& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
76 
80  inline UsageAccountResult& WithAccountId(const char* value) { SetAccountId(value); return *this;}
81 
82 
86  inline const Total& GetTotal() const{ return m_total; }
87 
91  inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
92 
96  inline void SetTotal(const Total& value) { m_totalHasBeenSet = true; m_total = value; }
97 
101  inline void SetTotal(Total&& value) { m_totalHasBeenSet = true; m_total = std::move(value); }
102 
106  inline UsageAccountResult& WithTotal(const Total& value) { SetTotal(value); return *this;}
107 
111  inline UsageAccountResult& WithTotal(Total&& value) { SetTotal(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_accountId;
116  bool m_accountIdHasBeenSet;
117 
118  Total m_total;
119  bool m_totalHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace GuardDuty
124 } // namespace Aws
Aws::GuardDuty::Model::UsageAccountResult::operator=
UsageAccountResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::UsageAccountResult::UsageAccountResult
UsageAccountResult()
Total.h
Aws::GuardDuty::Model::UsageAccountResult::SetAccountId
void SetAccountId(Aws::String &&value)
Definition: UsageAccountResult.h:60
Aws::GuardDuty::Model::UsageAccountResult::WithAccountId
UsageAccountResult & WithAccountId(const Aws::String &value)
Definition: UsageAccountResult.h:70
Aws::GuardDuty::Model::UsageAccountResult::WithTotal
UsageAccountResult & WithTotal(const Total &value)
Definition: UsageAccountResult.h:106
Aws::GuardDuty::Model::UsageAccountResult::SetAccountId
void SetAccountId(const char *value)
Definition: UsageAccountResult.h:65
Aws::GuardDuty::Model::UsageAccountResult::UsageAccountResult
UsageAccountResult(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::UsageAccountResult::AccountIdHasBeenSet
bool AccountIdHasBeenSet() const
Definition: UsageAccountResult.h:50
Aws::GuardDuty::Model::Total
Definition: Total.h:33
Aws::GuardDuty::Model::UsageAccountResult::SetAccountId
void SetAccountId(const Aws::String &value)
Definition: UsageAccountResult.h:55
Aws::GuardDuty::Model::UsageAccountResult::TotalHasBeenSet
bool TotalHasBeenSet() const
Definition: UsageAccountResult.h:91
GuardDuty_EXPORTS.h
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::UsageAccountResult::WithAccountId
UsageAccountResult & WithAccountId(Aws::String &&value)
Definition: UsageAccountResult.h:75
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::UsageAccountResult::SetTotal
void SetTotal(const Total &value)
Definition: UsageAccountResult.h:96
Aws::GuardDuty::Model::UsageAccountResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::UsageAccountResult::GetTotal
const Total & GetTotal() const
Definition: UsageAccountResult.h:86
Aws::GuardDuty::Model::UsageAccountResult::WithTotal
UsageAccountResult & WithTotal(Total &&value)
Definition: UsageAccountResult.h:111
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::UsageAccountResult::GetAccountId
const Aws::String & GetAccountId() const
Definition: UsageAccountResult.h:45
Aws::GuardDuty::Model::UsageAccountResult
Definition: UsageAccountResult.h:34
Aws::GuardDuty::Model::UsageAccountResult::SetTotal
void SetTotal(Total &&value)
Definition: UsageAccountResult.h:101
Aws::GuardDuty::Model::UsageAccountResult::WithAccountId
UsageAccountResult & WithAccountId(const char *value)
Definition: UsageAccountResult.h:80