AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
UsageResourceResult.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 UsageResourceResult() = default;
37 AWS_GUARDDUTY_API UsageResourceResult(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetResource() const { return m_resource; }
47 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
48 template<typename ResourceT = Aws::String>
49 void SetResource(ResourceT&& value) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
50 template<typename ResourceT = Aws::String>
51 UsageResourceResult& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
53
55
58 inline const Total& GetTotal() const { return m_total; }
59 inline bool TotalHasBeenSet() const { return m_totalHasBeenSet; }
60 template<typename TotalT = Total>
61 void SetTotal(TotalT&& value) { m_totalHasBeenSet = true; m_total = std::forward<TotalT>(value); }
62 template<typename TotalT = Total>
63 UsageResourceResult& WithTotal(TotalT&& value) { SetTotal(std::forward<TotalT>(value)); return *this;}
65 private:
66
67 Aws::String m_resource;
68 bool m_resourceHasBeenSet = false;
69
70 Total m_total;
71 bool m_totalHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace GuardDuty
76} // namespace Aws
AWS_GUARDDUTY_API UsageResourceResult(Aws::Utils::Json::JsonView jsonValue)
UsageResourceResult & WithTotal(TotalT &&value)
UsageResourceResult & WithResource(ResourceT &&value)
AWS_GUARDDUTY_API UsageResourceResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API UsageResourceResult()=default
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue