AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ResourceErrorsDetails.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/resiliencehub/model/ResourceError.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 ResilienceHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_RESILIENCEHUB_API ResourceErrorsDetails();
37 AWS_RESILIENCEHUB_API ResourceErrorsDetails(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline bool GetHasMoreErrors() const{ return m_hasMoreErrors; }
48 inline bool HasMoreErrorsHasBeenSet() const { return m_hasMoreErrorsHasBeenSet; }
49 inline void SetHasMoreErrors(bool value) { m_hasMoreErrorsHasBeenSet = true; m_hasMoreErrors = value; }
50 inline ResourceErrorsDetails& WithHasMoreErrors(bool value) { SetHasMoreErrors(value); return *this;}
52
54
57 inline const Aws::Vector<ResourceError>& GetResourceErrors() const{ return m_resourceErrors; }
58 inline bool ResourceErrorsHasBeenSet() const { return m_resourceErrorsHasBeenSet; }
59 inline void SetResourceErrors(const Aws::Vector<ResourceError>& value) { m_resourceErrorsHasBeenSet = true; m_resourceErrors = value; }
60 inline void SetResourceErrors(Aws::Vector<ResourceError>&& value) { m_resourceErrorsHasBeenSet = true; m_resourceErrors = std::move(value); }
62 inline ResourceErrorsDetails& WithResourceErrors(Aws::Vector<ResourceError>&& value) { SetResourceErrors(std::move(value)); return *this;}
63 inline ResourceErrorsDetails& AddResourceErrors(const ResourceError& value) { m_resourceErrorsHasBeenSet = true; m_resourceErrors.push_back(value); return *this; }
64 inline ResourceErrorsDetails& AddResourceErrors(ResourceError&& value) { m_resourceErrorsHasBeenSet = true; m_resourceErrors.push_back(std::move(value)); return *this; }
66 private:
67
68 bool m_hasMoreErrors;
69 bool m_hasMoreErrorsHasBeenSet = false;
70
71 Aws::Vector<ResourceError> m_resourceErrors;
72 bool m_resourceErrorsHasBeenSet = false;
73 };
74
75} // namespace Model
76} // namespace ResilienceHub
77} // namespace Aws
void SetResourceErrors(Aws::Vector< ResourceError > &&value)
AWS_RESILIENCEHUB_API ResourceErrorsDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
ResourceErrorsDetails & WithResourceErrors(Aws::Vector< ResourceError > &&value)
ResourceErrorsDetails & WithHasMoreErrors(bool value)
AWS_RESILIENCEHUB_API ResourceErrorsDetails(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ResourceErrorsDetails & AddResourceErrors(const ResourceError &value)
const Aws::Vector< ResourceError > & GetResourceErrors() const
void SetResourceErrors(const Aws::Vector< ResourceError > &value)
ResourceErrorsDetails & AddResourceErrors(ResourceError &&value)
ResourceErrorsDetails & WithResourceErrors(const Aws::Vector< ResourceError > &value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue