AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
PutEvaluationsRequest.h
1
6#pragma once
7#include <aws/config/ConfigServiceRequest.h>
8#include <aws/config/ConfigService_EXPORTS.h>
9#include <aws/config/model/Evaluation.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12
13#include <utility>
14
15namespace Aws {
16namespace ConfigService {
17namespace Model {
18
25 public:
26 AWS_CONFIGSERVICE_API PutEvaluationsRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "PutEvaluations"; }
33
34 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
35
36 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
39
44 inline const Aws::Vector<Evaluation>& GetEvaluations() const { return m_evaluations; }
45 inline bool EvaluationsHasBeenSet() const { return m_evaluationsHasBeenSet; }
46 template <typename EvaluationsT = Aws::Vector<Evaluation>>
47 void SetEvaluations(EvaluationsT&& value) {
48 m_evaluationsHasBeenSet = true;
49 m_evaluations = std::forward<EvaluationsT>(value);
50 }
51 template <typename EvaluationsT = Aws::Vector<Evaluation>>
52 PutEvaluationsRequest& WithEvaluations(EvaluationsT&& value) {
53 SetEvaluations(std::forward<EvaluationsT>(value));
54 return *this;
55 }
56 template <typename EvaluationsT = Evaluation>
57 PutEvaluationsRequest& AddEvaluations(EvaluationsT&& value) {
58 m_evaluationsHasBeenSet = true;
59 m_evaluations.emplace_back(std::forward<EvaluationsT>(value));
60 return *this;
61 }
63
65
69 inline const Aws::String& GetResultToken() const { return m_resultToken; }
70 inline bool ResultTokenHasBeenSet() const { return m_resultTokenHasBeenSet; }
71 template <typename ResultTokenT = Aws::String>
72 void SetResultToken(ResultTokenT&& value) {
73 m_resultTokenHasBeenSet = true;
74 m_resultToken = std::forward<ResultTokenT>(value);
75 }
76 template <typename ResultTokenT = Aws::String>
77 PutEvaluationsRequest& WithResultToken(ResultTokenT&& value) {
78 SetResultToken(std::forward<ResultTokenT>(value));
79 return *this;
80 }
82
84
93 inline bool GetTestMode() const { return m_testMode; }
94 inline bool TestModeHasBeenSet() const { return m_testModeHasBeenSet; }
95 inline void SetTestMode(bool value) {
96 m_testModeHasBeenSet = true;
97 m_testMode = value;
98 }
99 inline PutEvaluationsRequest& WithTestMode(bool value) {
100 SetTestMode(value);
101 return *this;
102 }
104 private:
105 Aws::Vector<Evaluation> m_evaluations;
106
107 Aws::String m_resultToken;
108
109 bool m_testMode{false};
110 bool m_evaluationsHasBeenSet = false;
111 bool m_resultTokenHasBeenSet = false;
112 bool m_testModeHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace ConfigService
117} // namespace Aws
PutEvaluationsRequest & WithResultToken(ResultTokenT &&value)
AWS_CONFIGSERVICE_API PutEvaluationsRequest()=default
virtual const char * GetServiceRequestName() const override
const Aws::Vector< Evaluation > & GetEvaluations() const
PutEvaluationsRequest & AddEvaluations(EvaluationsT &&value)
PutEvaluationsRequest & WithTestMode(bool value)
PutEvaluationsRequest & WithEvaluations(EvaluationsT &&value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector