AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEvaluations(const Aws::Vector<Evaluation>& value) { m_evaluationsHasBeenSet = true; m_evaluations = value; }
51 inline void SetEvaluations(Aws::Vector<Evaluation>&& value) { m_evaluationsHasBeenSet = true; m_evaluations = std::move(value); }
52 inline PutEvaluationsRequest& WithEvaluations(const Aws::Vector<Evaluation>& value) { SetEvaluations(value); return *this;}
53 inline PutEvaluationsRequest& WithEvaluations(Aws::Vector<Evaluation>&& value) { SetEvaluations(std::move(value)); return *this;}
54 inline PutEvaluationsRequest& AddEvaluations(const Evaluation& value) { m_evaluationsHasBeenSet = true; m_evaluations.push_back(value); return *this; }
55 inline PutEvaluationsRequest& AddEvaluations(Evaluation&& value) { m_evaluationsHasBeenSet = true; m_evaluations.push_back(std::move(value)); return *this; }
57
59
63 inline const Aws::String& GetResultToken() const{ return m_resultToken; }
64 inline bool ResultTokenHasBeenSet() const { return m_resultTokenHasBeenSet; }
65 inline void SetResultToken(const Aws::String& value) { m_resultTokenHasBeenSet = true; m_resultToken = value; }
66 inline void SetResultToken(Aws::String&& value) { m_resultTokenHasBeenSet = true; m_resultToken = std::move(value); }
67 inline void SetResultToken(const char* value) { m_resultTokenHasBeenSet = true; m_resultToken.assign(value); }
68 inline PutEvaluationsRequest& WithResultToken(const Aws::String& value) { SetResultToken(value); return *this;}
69 inline PutEvaluationsRequest& WithResultToken(Aws::String&& value) { SetResultToken(std::move(value)); return *this;}
70 inline PutEvaluationsRequest& WithResultToken(const char* value) { SetResultToken(value); return *this;}
72
74
83 inline bool GetTestMode() const{ return m_testMode; }
84 inline bool TestModeHasBeenSet() const { return m_testModeHasBeenSet; }
85 inline void SetTestMode(bool value) { m_testModeHasBeenSet = true; m_testMode = value; }
86 inline PutEvaluationsRequest& WithTestMode(bool value) { SetTestMode(value); return *this;}
88 private:
89
90 Aws::Vector<Evaluation> m_evaluations;
91 bool m_evaluationsHasBeenSet = false;
92
93 Aws::String m_resultToken;
94 bool m_resultTokenHasBeenSet = false;
95
96 bool m_testMode;
97 bool m_testModeHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace ConfigService
102} // namespace Aws
PutEvaluationsRequest & WithResultToken(const char *value)
PutEvaluationsRequest & WithResultToken(const Aws::String &value)
PutEvaluationsRequest & AddEvaluations(Evaluation &&value)
PutEvaluationsRequest & WithEvaluations(Aws::Vector< Evaluation > &&value)
virtual const char * GetServiceRequestName() const override
PutEvaluationsRequest & AddEvaluations(const Evaluation &value)
void SetEvaluations(Aws::Vector< Evaluation > &&value)
PutEvaluationsRequest & WithResultToken(Aws::String &&value)
const Aws::Vector< Evaluation > & GetEvaluations() const
PutEvaluationsRequest & WithTestMode(bool value)
void SetEvaluations(const Aws::Vector< Evaluation > &value)
AWS_CONFIGSERVICE_API Aws::String SerializePayload() const override
AWS_CONFIGSERVICE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
PutEvaluationsRequest & WithEvaluations(const Aws::Vector< Evaluation > &value)
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