AWS SDK for C++  0.12.9
AWS SDK for C++
PutEvaluationsRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
21 
22 namespace Aws
23 {
24 namespace ConfigService
25 {
26 namespace Model
27 {
28 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
37  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
38 
44  inline const Aws::Vector<Evaluation>& GetEvaluations() const{ return m_evaluations; }
45 
51  inline void SetEvaluations(const Aws::Vector<Evaluation>& value) { m_evaluationsHasBeenSet = true; m_evaluations = value; }
52 
58  inline void SetEvaluations(Aws::Vector<Evaluation>&& value) { m_evaluationsHasBeenSet = true; m_evaluations = value; }
59 
65  inline PutEvaluationsRequest& WithEvaluations(const Aws::Vector<Evaluation>& value) { SetEvaluations(value); return *this;}
66 
72  inline PutEvaluationsRequest& WithEvaluations(Aws::Vector<Evaluation>&& value) { SetEvaluations(value); return *this;}
73 
79  inline PutEvaluationsRequest& AddEvaluations(const Evaluation& value) { m_evaluationsHasBeenSet = true; m_evaluations.push_back(value); return *this; }
80 
86  inline PutEvaluationsRequest& AddEvaluations(Evaluation&& value) { m_evaluationsHasBeenSet = true; m_evaluations.push_back(value); return *this; }
87 
92  inline const Aws::String& GetResultToken() const{ return m_resultToken; }
93 
98  inline void SetResultToken(const Aws::String& value) { m_resultTokenHasBeenSet = true; m_resultToken = value; }
99 
104  inline void SetResultToken(Aws::String&& value) { m_resultTokenHasBeenSet = true; m_resultToken = value; }
105 
110  inline void SetResultToken(const char* value) { m_resultTokenHasBeenSet = true; m_resultToken.assign(value); }
111 
116  inline PutEvaluationsRequest& WithResultToken(const Aws::String& value) { SetResultToken(value); return *this;}
117 
122  inline PutEvaluationsRequest& WithResultToken(Aws::String&& value) { SetResultToken(value); return *this;}
123 
128  inline PutEvaluationsRequest& WithResultToken(const char* value) { SetResultToken(value); return *this;}
129 
130  private:
131  Aws::Vector<Evaluation> m_evaluations;
132  bool m_evaluationsHasBeenSet;
133  Aws::String m_resultToken;
134  bool m_resultTokenHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace ConfigService
139 } // namespace Aws
const Aws::Vector< Evaluation > & GetEvaluations() const
PutEvaluationsRequest & WithResultToken(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
PutEvaluationsRequest & WithEvaluations(const Aws::Vector< Evaluation > &value)
PutEvaluationsRequest & WithResultToken(Aws::String &&value)
void SetEvaluations(Aws::Vector< Evaluation > &&value)
PutEvaluationsRequest & WithEvaluations(Aws::Vector< Evaluation > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_CONFIGSERVICE_API
void SetEvaluations(const Aws::Vector< Evaluation > &value)
PutEvaluationsRequest & AddEvaluations(const Evaluation &value)
PutEvaluationsRequest & AddEvaluations(Evaluation &&value)
JSON (JavaScript Object Notation).
PutEvaluationsRequest & WithResultToken(const Aws::String &value)