AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
GetUsageStatisticsResult.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/UsageStatistics.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
25 public:
26 AWS_GUARDDUTY_API GetUsageStatisticsResult() = default;
29
31
35 inline const UsageStatistics& GetUsageStatistics() const { return m_usageStatistics; }
36 template <typename UsageStatisticsT = UsageStatistics>
37 void SetUsageStatistics(UsageStatisticsT&& value) {
38 m_usageStatisticsHasBeenSet = true;
39 m_usageStatistics = std::forward<UsageStatisticsT>(value);
40 }
41 template <typename UsageStatisticsT = UsageStatistics>
42 GetUsageStatisticsResult& WithUsageStatistics(UsageStatisticsT&& value) {
43 SetUsageStatistics(std::forward<UsageStatisticsT>(value));
44 return *this;
45 }
47
49
53 inline const Aws::String& GetNextToken() const { return m_nextToken; }
54 template <typename NextTokenT = Aws::String>
55 void SetNextToken(NextTokenT&& value) {
56 m_nextTokenHasBeenSet = true;
57 m_nextToken = std::forward<NextTokenT>(value);
58 }
59 template <typename NextTokenT = Aws::String>
61 SetNextToken(std::forward<NextTokenT>(value));
62 return *this;
63 }
65
67
68 inline const Aws::String& GetRequestId() const { return m_requestId; }
69 template <typename RequestIdT = Aws::String>
70 void SetRequestId(RequestIdT&& value) {
71 m_requestIdHasBeenSet = true;
72 m_requestId = std::forward<RequestIdT>(value);
73 }
74 template <typename RequestIdT = Aws::String>
76 SetRequestId(std::forward<RequestIdT>(value));
77 return *this;
78 }
80 private:
81 UsageStatistics m_usageStatistics;
82
83 Aws::String m_nextToken;
84
85 Aws::String m_requestId;
86 bool m_usageStatisticsHasBeenSet = false;
87 bool m_nextTokenHasBeenSet = false;
88 bool m_requestIdHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace GuardDuty
93} // namespace Aws
AWS_GUARDDUTY_API GetUsageStatisticsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUsageStatisticsResult & WithRequestId(RequestIdT &&value)
GetUsageStatisticsResult & WithUsageStatistics(UsageStatisticsT &&value)
AWS_GUARDDUTY_API GetUsageStatisticsResult()=default
AWS_GUARDDUTY_API GetUsageStatisticsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetUsageStatisticsResult & WithNextToken(NextTokenT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue