AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
PutEvaluationsRequest.h
1
6#pragma once
7#include <aws/config/ConfigService_EXPORTS.h>
8#include <aws/config/ConfigServiceRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/config/model/Evaluation.h>
12#include <utility>
13
14namespace Aws
15{
16namespace ConfigService
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_CONFIGSERVICE_API PutEvaluationsRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "PutEvaluations"; }
36
37 AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override;
38
39 AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
40
41
43
48 inline const Aws::Vector<Evaluation>& GetEvaluations() const { return m_evaluations; }
49 inline bool EvaluationsHasBeenSet() const { return m_evaluationsHasBeenSet; }
50 template<typename EvaluationsT = Aws::Vector<Evaluation>>
51 void SetEvaluations(EvaluationsT&& value) { m_evaluationsHasBeenSet = true; m_evaluations = std::forward<EvaluationsT>(value); }
52 template<typename EvaluationsT = Aws::Vector<Evaluation>>
53 PutEvaluationsRequest& WithEvaluations(EvaluationsT&& value) { SetEvaluations(std::forward<EvaluationsT>(value)); return *this;}
54 template<typename EvaluationsT = Evaluation>
55 PutEvaluationsRequest& AddEvaluations(EvaluationsT&& value) { m_evaluationsHasBeenSet = true; m_evaluations.emplace_back(std::forward<EvaluationsT>(value)); return *this; }
57
59
63 inline const Aws::String& GetResultToken() const { return m_resultToken; }
64 inline bool ResultTokenHasBeenSet() const { return m_resultTokenHasBeenSet; }
65 template<typename ResultTokenT = Aws::String>
66 void SetResultToken(ResultTokenT&& value) { m_resultTokenHasBeenSet = true; m_resultToken = std::forward<ResultTokenT>(value); }
67 template<typename ResultTokenT = Aws::String>
68 PutEvaluationsRequest& WithResultToken(ResultTokenT&& value) { SetResultToken(std::forward<ResultTokenT>(value)); return *this;}
70
72
81 inline bool GetTestMode() const { return m_testMode; }
82 inline bool TestModeHasBeenSet() const { return m_testModeHasBeenSet; }
83 inline void SetTestMode(bool value) { m_testModeHasBeenSet = true; m_testMode = value; }
84 inline PutEvaluationsRequest& WithTestMode(bool value) { SetTestMode(value); return *this;}
86 private:
87
88 Aws::Vector<Evaluation> m_evaluations;
89 bool m_evaluationsHasBeenSet = false;
90
91 Aws::String m_resultToken;
92 bool m_resultTokenHasBeenSet = false;
93
94 bool m_testMode{false};
95 bool m_testModeHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace ConfigService
100} // 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