AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchGetViewResult.h
1
6#pragma once
7#include <aws/resource-explorer-2/ResourceExplorer2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resource-explorer-2/model/BatchGetViewError.h>
11#include <aws/resource-explorer-2/model/View.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 ResourceExplorer2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_RESOURCEEXPLORER2_API BatchGetViewResult();
36
37
39
43 inline const Aws::Vector<BatchGetViewError>& GetErrors() const{ return m_errors; }
44 inline void SetErrors(const Aws::Vector<BatchGetViewError>& value) { m_errors = value; }
45 inline void SetErrors(Aws::Vector<BatchGetViewError>&& value) { m_errors = std::move(value); }
46 inline BatchGetViewResult& WithErrors(const Aws::Vector<BatchGetViewError>& value) { SetErrors(value); return *this;}
47 inline BatchGetViewResult& WithErrors(Aws::Vector<BatchGetViewError>&& value) { SetErrors(std::move(value)); return *this;}
48 inline BatchGetViewResult& AddErrors(const BatchGetViewError& value) { m_errors.push_back(value); return *this; }
49 inline BatchGetViewResult& AddErrors(BatchGetViewError&& value) { m_errors.push_back(std::move(value)); return *this; }
51
53
57 inline const Aws::Vector<View>& GetViews() const{ return m_views; }
58 inline void SetViews(const Aws::Vector<View>& value) { m_views = value; }
59 inline void SetViews(Aws::Vector<View>&& value) { m_views = std::move(value); }
60 inline BatchGetViewResult& WithViews(const Aws::Vector<View>& value) { SetViews(value); return *this;}
61 inline BatchGetViewResult& WithViews(Aws::Vector<View>&& value) { SetViews(std::move(value)); return *this;}
62 inline BatchGetViewResult& AddViews(const View& value) { m_views.push_back(value); return *this; }
63 inline BatchGetViewResult& AddViews(View&& value) { m_views.push_back(std::move(value)); return *this; }
65
67
68 inline const Aws::String& GetRequestId() const{ return m_requestId; }
69 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
70 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
71 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
72 inline BatchGetViewResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
73 inline BatchGetViewResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
74 inline BatchGetViewResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
76 private:
77
79
80 Aws::Vector<View> m_views;
81
82 Aws::String m_requestId;
83 };
84
85} // namespace Model
86} // namespace ResourceExplorer2
87} // namespace Aws
AWS_RESOURCEEXPLORER2_API BatchGetViewResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetViewResult & WithViews(const Aws::Vector< View > &value)
const Aws::Vector< View > & GetViews() const
BatchGetViewResult & AddErrors(const BatchGetViewError &value)
BatchGetViewResult & WithErrors(Aws::Vector< BatchGetViewError > &&value)
BatchGetViewResult & WithRequestId(Aws::String &&value)
void SetViews(const Aws::Vector< View > &value)
BatchGetViewResult & WithErrors(const Aws::Vector< BatchGetViewError > &value)
void SetErrors(Aws::Vector< BatchGetViewError > &&value)
AWS_RESOURCEEXPLORER2_API BatchGetViewResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchGetViewResult & WithViews(Aws::Vector< View > &&value)
BatchGetViewResult & AddViews(const View &value)
AWS_RESOURCEEXPLORER2_API BatchGetViewResult()
void SetErrors(const Aws::Vector< BatchGetViewError > &value)
BatchGetViewResult & AddErrors(BatchGetViewError &&value)
BatchGetViewResult & WithRequestId(const Aws::String &value)
BatchGetViewResult & WithRequestId(const char *value)
const Aws::Vector< BatchGetViewError > & GetErrors() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue