AWS SDK for C++

AWS SDK for C++ Version 1.11.891

Loading...
Searching...
No Matches
ApiCall.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/guardduty/GuardDuty_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GuardDuty {
20namespace Model {
21
28class ApiCall {
29 public:
30 AWS_GUARDDUTY_API ApiCall() = default;
31 AWS_GUARDDUTY_API ApiCall(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GUARDDUTY_API ApiCall& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetOperation() const { return m_operation; }
40 inline bool OperationHasBeenSet() const { return m_operationHasBeenSet; }
41 template <typename OperationT = Aws::String>
42 void SetOperation(OperationT&& value) {
43 m_operationHasBeenSet = true;
44 m_operation = std::forward<OperationT>(value);
45 }
46 template <typename OperationT = Aws::String>
47 ApiCall& WithOperation(OperationT&& value) {
48 SetOperation(std::forward<OperationT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetService() const { return m_service; }
58 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
59 template <typename ServiceT = Aws::String>
60 void SetService(ServiceT&& value) {
61 m_serviceHasBeenSet = true;
62 m_service = std::forward<ServiceT>(value);
63 }
64 template <typename ServiceT = Aws::String>
65 ApiCall& WithService(ServiceT&& value) {
66 SetService(std::forward<ServiceT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetError() const { return m_error; }
76 inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; }
77 template <typename ErrorT = Aws::String>
78 void SetError(ErrorT&& value) {
79 m_errorHasBeenSet = true;
80 m_error = std::forward<ErrorT>(value);
81 }
82 template <typename ErrorT = Aws::String>
83 ApiCall& WithError(ErrorT&& value) {
84 SetError(std::forward<ErrorT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetUserAgent() const { return m_userAgent; }
94 inline bool UserAgentHasBeenSet() const { return m_userAgentHasBeenSet; }
95 template <typename UserAgentT = Aws::String>
96 void SetUserAgent(UserAgentT&& value) {
97 m_userAgentHasBeenSet = true;
98 m_userAgent = std::forward<UserAgentT>(value);
99 }
100 template <typename UserAgentT = Aws::String>
101 ApiCall& WithUserAgent(UserAgentT&& value) {
102 SetUserAgent(std::forward<UserAgentT>(value));
103 return *this;
104 }
106 private:
107 Aws::String m_operation;
108
109 Aws::String m_service;
110
111 Aws::String m_error;
112
113 Aws::String m_userAgent;
114 bool m_operationHasBeenSet = false;
115 bool m_serviceHasBeenSet = false;
116 bool m_errorHasBeenSet = false;
117 bool m_userAgentHasBeenSet = false;
118};
119
120} // namespace Model
121} // namespace GuardDuty
122} // namespace Aws
ApiCall & WithOperation(OperationT &&value)
Definition ApiCall.h:47
ApiCall & WithService(ServiceT &&value)
Definition ApiCall.h:65
const Aws::String & GetError() const
Definition ApiCall.h:75
void SetOperation(OperationT &&value)
Definition ApiCall.h:42
AWS_GUARDDUTY_API ApiCall()=default
const Aws::String & GetUserAgent() const
Definition ApiCall.h:93
void SetService(ServiceT &&value)
Definition ApiCall.h:60
void SetError(ErrorT &&value)
Definition ApiCall.h:78
bool OperationHasBeenSet() const
Definition ApiCall.h:40
const Aws::String & GetService() const
Definition ApiCall.h:57
ApiCall & WithError(ErrorT &&value)
Definition ApiCall.h:83
ApiCall & WithUserAgent(UserAgentT &&value)
Definition ApiCall.h:101
bool ServiceHasBeenSet() const
Definition ApiCall.h:58
AWS_GUARDDUTY_API ApiCall & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetUserAgent(UserAgentT &&value)
Definition ApiCall.h:96
bool UserAgentHasBeenSet() const
Definition ApiCall.h:94
AWS_GUARDDUTY_API ApiCall(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOperation() const
Definition ApiCall.h:39
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue