AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UsageResourceResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9#include <aws/guardduty/model/Total.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
30 public:
31 AWS_GUARDDUTY_API UsageResourceResult() = default;
32 AWS_GUARDDUTY_API UsageResourceResult(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetResource() const { return m_resource; }
41 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
42 template <typename ResourceT = Aws::String>
43 void SetResource(ResourceT&& value) {
44 m_resourceHasBeenSet = true;
45 m_resource = std::forward<ResourceT>(value);
46 }
47 template <typename ResourceT = Aws::String>
48 UsageResourceResult& WithResource(ResourceT&& value) {
49 SetResource(std::forward<ResourceT>(value));
50 return *this;
51 }
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) {
62 m_totalHasBeenSet = true;
63 m_total = std::forward<TotalT>(value);
64 }
65 template <typename TotalT = Total>
66 UsageResourceResult& WithTotal(TotalT&& value) {
67 SetTotal(std::forward<TotalT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_resource;
73
74 Total m_total;
75 bool m_resourceHasBeenSet = false;
76 bool m_totalHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace GuardDuty
81} // 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