AWS SDK for C++  1.9.106
AWS SDK for C++
UsageResourceResult.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& GetResource() const{ return m_resource; }
46 
50  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
51 
55  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
56 
60  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
61 
65  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
66 
70  inline UsageResourceResult& WithResource(const Aws::String& value) { SetResource(value); return *this;}
71 
75  inline UsageResourceResult& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
76 
80  inline UsageResourceResult& WithResource(const char* value) { SetResource(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 UsageResourceResult& WithTotal(const Total& value) { SetTotal(value); return *this;}
107 
111  inline UsageResourceResult& WithTotal(Total&& value) { SetTotal(std::move(value)); return *this;}
112 
113  private:
114 
115  Aws::String m_resource;
116  bool m_resourceHasBeenSet;
117 
118  Total m_total;
119  bool m_totalHasBeenSet;
120  };
121 
122 } // namespace Model
123 } // namespace GuardDuty
124 } // namespace Aws
Aws::GuardDuty::Model::UsageResourceResult::UsageResourceResult
UsageResourceResult(Aws::Utils::Json::JsonView jsonValue)
Total.h
Aws::GuardDuty::Model::UsageResourceResult::SetResource
void SetResource(const Aws::String &value)
Definition: UsageResourceResult.h:55
Aws::GuardDuty::Model::UsageResourceResult::WithResource
UsageResourceResult & WithResource(const Aws::String &value)
Definition: UsageResourceResult.h:70
Aws::GuardDuty::Model::UsageResourceResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::UsageResourceResult::GetTotal
const Total & GetTotal() const
Definition: UsageResourceResult.h:86
Aws::GuardDuty::Model::UsageResourceResult::SetTotal
void SetTotal(Total &&value)
Definition: UsageResourceResult.h:101
Aws::GuardDuty::Model::UsageResourceResult::operator=
UsageResourceResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::Total
Definition: Total.h:33
Aws::GuardDuty::Model::UsageResourceResult::TotalHasBeenSet
bool TotalHasBeenSet() const
Definition: UsageResourceResult.h:91
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::UsageResourceResult::UsageResourceResult
UsageResourceResult()
Aws::GuardDuty::Model::UsageResourceResult::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: UsageResourceResult.h:50
Aws::GuardDuty::Model::UsageResourceResult::GetResource
const Aws::String & GetResource() const
Definition: UsageResourceResult.h:45
Aws::GuardDuty::Model::UsageResourceResult::WithResource
UsageResourceResult & WithResource(const char *value)
Definition: UsageResourceResult.h:80
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::UsageResourceResult::WithResource
UsageResourceResult & WithResource(Aws::String &&value)
Definition: UsageResourceResult.h:75
Aws::GuardDuty::Model::UsageResourceResult::WithTotal
UsageResourceResult & WithTotal(Total &&value)
Definition: UsageResourceResult.h:111
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::UsageResourceResult::SetResource
void SetResource(const char *value)
Definition: UsageResourceResult.h:65
Aws::GuardDuty::Model::UsageResourceResult::SetTotal
void SetTotal(const Total &value)
Definition: UsageResourceResult.h:96
Aws::GuardDuty::Model::UsageResourceResult
Definition: UsageResourceResult.h:34
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::UsageResourceResult::WithTotal
UsageResourceResult & WithTotal(const Total &value)
Definition: UsageResourceResult.h:106
Aws::GuardDuty::Model::UsageResourceResult::SetResource
void SetResource(Aws::String &&value)
Definition: UsageResourceResult.h:60