AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BadRequestDetail.h
1
6#pragma once
7#include <aws/appsync/AppSync_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/appsync/model/CodeError.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace AppSync
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_APPSYNC_API BadRequestDetail();
38 AWS_APPSYNC_API BadRequestDetail(Aws::Utils::Json::JsonView jsonValue);
40 AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<CodeError>& GetCodeErrors() const{ return m_codeErrors; }
48 inline bool CodeErrorsHasBeenSet() const { return m_codeErrorsHasBeenSet; }
49 inline void SetCodeErrors(const Aws::Vector<CodeError>& value) { m_codeErrorsHasBeenSet = true; m_codeErrors = value; }
50 inline void SetCodeErrors(Aws::Vector<CodeError>&& value) { m_codeErrorsHasBeenSet = true; m_codeErrors = std::move(value); }
51 inline BadRequestDetail& WithCodeErrors(const Aws::Vector<CodeError>& value) { SetCodeErrors(value); return *this;}
52 inline BadRequestDetail& WithCodeErrors(Aws::Vector<CodeError>&& value) { SetCodeErrors(std::move(value)); return *this;}
53 inline BadRequestDetail& AddCodeErrors(const CodeError& value) { m_codeErrorsHasBeenSet = true; m_codeErrors.push_back(value); return *this; }
54 inline BadRequestDetail& AddCodeErrors(CodeError&& value) { m_codeErrorsHasBeenSet = true; m_codeErrors.push_back(std::move(value)); return *this; }
56 private:
57
58 Aws::Vector<CodeError> m_codeErrors;
59 bool m_codeErrorsHasBeenSet = false;
60 };
61
62} // namespace Model
63} // namespace AppSync
64} // namespace Aws
BadRequestDetail & WithCodeErrors(Aws::Vector< CodeError > &&value)
void SetCodeErrors(const Aws::Vector< CodeError > &value)
void SetCodeErrors(Aws::Vector< CodeError > &&value)
BadRequestDetail & AddCodeErrors(CodeError &&value)
const Aws::Vector< CodeError > & GetCodeErrors() const
BadRequestDetail & WithCodeErrors(const Aws::Vector< CodeError > &value)
AWS_APPSYNC_API BadRequestDetail(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API BadRequestDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPSYNC_API Aws::Utils::Json::JsonValue Jsonize() const
BadRequestDetail & AddCodeErrors(const CodeError &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue