AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGetFieldResult.h
1
6#pragma once
7#include <aws/connectcases/ConnectCases_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/connectcases/model/FieldError.h>
11#include <aws/connectcases/model/GetFieldResponse.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace ConnectCases
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CONNECTCASES_API BatchGetFieldResult();
36
37
39
42 inline const Aws::Vector<FieldError>& GetErrors() const{ return m_errors; }
43 inline void SetErrors(const Aws::Vector<FieldError>& value) { m_errors = value; }
44 inline void SetErrors(Aws::Vector<FieldError>&& value) { m_errors = std::move(value); }
45 inline BatchGetFieldResult& WithErrors(const Aws::Vector<FieldError>& value) { SetErrors(value); return *this;}
46 inline BatchGetFieldResult& WithErrors(Aws::Vector<FieldError>&& value) { SetErrors(std::move(value)); return *this;}
47 inline BatchGetFieldResult& AddErrors(const FieldError& value) { m_errors.push_back(value); return *this; }
48 inline BatchGetFieldResult& AddErrors(FieldError&& value) { m_errors.push_back(std::move(value)); return *this; }
50
52
55 inline const Aws::Vector<GetFieldResponse>& GetFields() const{ return m_fields; }
56 inline void SetFields(const Aws::Vector<GetFieldResponse>& value) { m_fields = value; }
57 inline void SetFields(Aws::Vector<GetFieldResponse>&& value) { m_fields = std::move(value); }
58 inline BatchGetFieldResult& WithFields(const Aws::Vector<GetFieldResponse>& value) { SetFields(value); return *this;}
59 inline BatchGetFieldResult& WithFields(Aws::Vector<GetFieldResponse>&& value) { SetFields(std::move(value)); return *this;}
60 inline BatchGetFieldResult& AddFields(const GetFieldResponse& value) { m_fields.push_back(value); return *this; }
61 inline BatchGetFieldResult& AddFields(GetFieldResponse&& value) { m_fields.push_back(std::move(value)); return *this; }
63
65
66 inline const Aws::String& GetRequestId() const{ return m_requestId; }
67 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
68 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
69 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
70 inline BatchGetFieldResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
71 inline BatchGetFieldResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
72 inline BatchGetFieldResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
74 private:
75
77
79
80 Aws::String m_requestId;
81 };
82
83} // namespace Model
84} // namespace ConnectCases
85} // namespace Aws
BatchGetFieldResult & AddFields(const GetFieldResponse &value)
BatchGetFieldResult & WithFields(const Aws::Vector< GetFieldResponse > &value)
BatchGetFieldResult & WithErrors(Aws::Vector< FieldError > &&value)
BatchGetFieldResult & AddErrors(FieldError &&value)
void SetFields(const Aws::Vector< GetFieldResponse > &value)
void SetErrors(Aws::Vector< FieldError > &&value)
BatchGetFieldResult & AddFields(GetFieldResponse &&value)
const Aws::Vector< FieldError > & GetErrors() const
BatchGetFieldResult & WithRequestId(const Aws::String &value)
BatchGetFieldResult & WithErrors(const Aws::Vector< FieldError > &value)
AWS_CONNECTCASES_API BatchGetFieldResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetFields(Aws::Vector< GetFieldResponse > &&value)
BatchGetFieldResult & WithFields(Aws::Vector< GetFieldResponse > &&value)
BatchGetFieldResult & WithRequestId(Aws::String &&value)
AWS_CONNECTCASES_API BatchGetFieldResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetFieldResult & AddErrors(const FieldError &value)
void SetErrors(const Aws::Vector< FieldError > &value)
const Aws::Vector< GetFieldResponse > & GetFields() const
BatchGetFieldResult & WithRequestId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue