AWS SDK for C++

AWS SDK for C++ Version 1.11.921

Loading...
Searching...
No Matches
GatewayResourceFailure.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/GatewayOperationError.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS {
22namespace Model {
23
31 public:
32 AWS_ECS_API GatewayResourceFailure() = default;
36
38
42 inline const Aws::String& GetArn() const { return m_arn; }
43 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
44 template <typename ArnT = Aws::String>
45 void SetArn(ArnT&& value) {
46 m_arnHasBeenSet = true;
47 m_arn = std::forward<ArnT>(value);
48 }
49 template <typename ArnT = Aws::String>
51 SetArn(std::forward<ArnT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<GatewayOperationError>& GetErrors() const { return m_errors; }
61 inline bool ErrorsHasBeenSet() const { return m_errorsHasBeenSet; }
62 template <typename ErrorsT = Aws::Vector<GatewayOperationError>>
63 void SetErrors(ErrorsT&& value) {
64 m_errorsHasBeenSet = true;
65 m_errors = std::forward<ErrorsT>(value);
66 }
67 template <typename ErrorsT = Aws::Vector<GatewayOperationError>>
69 SetErrors(std::forward<ErrorsT>(value));
70 return *this;
71 }
72 template <typename ErrorsT = GatewayOperationError>
74 m_errorsHasBeenSet = true;
75 m_errors.emplace_back(std::forward<ErrorsT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_arn;
81
83 bool m_arnHasBeenSet = false;
84 bool m_errorsHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace ECS
89} // namespace Aws
const Aws::Vector< GatewayOperationError > & GetErrors() const
AWS_ECS_API GatewayResourceFailure(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API GatewayResourceFailure & operator=(Aws::Utils::Json::JsonView jsonValue)
GatewayResourceFailure & WithErrors(ErrorsT &&value)
AWS_ECS_API GatewayResourceFailure()=default
GatewayResourceFailure & AddErrors(ErrorsT &&value)
GatewayResourceFailure & WithArn(ArnT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() 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