AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
BatchDeleteClusterNodesResult.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/BatchDeleteClusterNodesError.h>
11#include <aws/sagemaker/model/BatchDeleteClusterNodeLogicalIdsError.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 SageMaker
27{
28namespace Model
29{
31 {
32 public:
33 AWS_SAGEMAKER_API BatchDeleteClusterNodesResult() = default;
36
37
39
42 inline const Aws::Vector<BatchDeleteClusterNodesError>& GetFailed() const { return m_failed; }
43 template<typename FailedT = Aws::Vector<BatchDeleteClusterNodesError>>
44 void SetFailed(FailedT&& value) { m_failedHasBeenSet = true; m_failed = std::forward<FailedT>(value); }
45 template<typename FailedT = Aws::Vector<BatchDeleteClusterNodesError>>
46 BatchDeleteClusterNodesResult& WithFailed(FailedT&& value) { SetFailed(std::forward<FailedT>(value)); return *this;}
47 template<typename FailedT = BatchDeleteClusterNodesError>
48 BatchDeleteClusterNodesResult& AddFailed(FailedT&& value) { m_failedHasBeenSet = true; m_failed.emplace_back(std::forward<FailedT>(value)); return *this; }
50
52
56 inline const Aws::Vector<Aws::String>& GetSuccessful() const { return m_successful; }
57 template<typename SuccessfulT = Aws::Vector<Aws::String>>
58 void SetSuccessful(SuccessfulT&& value) { m_successfulHasBeenSet = true; m_successful = std::forward<SuccessfulT>(value); }
59 template<typename SuccessfulT = Aws::Vector<Aws::String>>
60 BatchDeleteClusterNodesResult& WithSuccessful(SuccessfulT&& value) { SetSuccessful(std::forward<SuccessfulT>(value)); return *this;}
61 template<typename SuccessfulT = Aws::String>
62 BatchDeleteClusterNodesResult& AddSuccessful(SuccessfulT&& value) { m_successfulHasBeenSet = true; m_successful.emplace_back(std::forward<SuccessfulT>(value)); return *this; }
64
66
70 inline const Aws::Vector<BatchDeleteClusterNodeLogicalIdsError>& GetFailedNodeLogicalIds() const { return m_failedNodeLogicalIds; }
71 template<typename FailedNodeLogicalIdsT = Aws::Vector<BatchDeleteClusterNodeLogicalIdsError>>
72 void SetFailedNodeLogicalIds(FailedNodeLogicalIdsT&& value) { m_failedNodeLogicalIdsHasBeenSet = true; m_failedNodeLogicalIds = std::forward<FailedNodeLogicalIdsT>(value); }
73 template<typename FailedNodeLogicalIdsT = Aws::Vector<BatchDeleteClusterNodeLogicalIdsError>>
74 BatchDeleteClusterNodesResult& WithFailedNodeLogicalIds(FailedNodeLogicalIdsT&& value) { SetFailedNodeLogicalIds(std::forward<FailedNodeLogicalIdsT>(value)); return *this;}
75 template<typename FailedNodeLogicalIdsT = BatchDeleteClusterNodeLogicalIdsError>
76 BatchDeleteClusterNodesResult& AddFailedNodeLogicalIds(FailedNodeLogicalIdsT&& value) { m_failedNodeLogicalIdsHasBeenSet = true; m_failedNodeLogicalIds.emplace_back(std::forward<FailedNodeLogicalIdsT>(value)); return *this; }
78
80
84 inline const Aws::Vector<Aws::String>& GetSuccessfulNodeLogicalIds() const { return m_successfulNodeLogicalIds; }
85 template<typename SuccessfulNodeLogicalIdsT = Aws::Vector<Aws::String>>
86 void SetSuccessfulNodeLogicalIds(SuccessfulNodeLogicalIdsT&& value) { m_successfulNodeLogicalIdsHasBeenSet = true; m_successfulNodeLogicalIds = std::forward<SuccessfulNodeLogicalIdsT>(value); }
87 template<typename SuccessfulNodeLogicalIdsT = Aws::Vector<Aws::String>>
88 BatchDeleteClusterNodesResult& WithSuccessfulNodeLogicalIds(SuccessfulNodeLogicalIdsT&& value) { SetSuccessfulNodeLogicalIds(std::forward<SuccessfulNodeLogicalIdsT>(value)); return *this;}
89 template<typename SuccessfulNodeLogicalIdsT = Aws::String>
90 BatchDeleteClusterNodesResult& AddSuccessfulNodeLogicalIds(SuccessfulNodeLogicalIdsT&& value) { m_successfulNodeLogicalIdsHasBeenSet = true; m_successfulNodeLogicalIds.emplace_back(std::forward<SuccessfulNodeLogicalIdsT>(value)); return *this; }
92
94
95 inline const Aws::String& GetRequestId() const { return m_requestId; }
96 template<typename RequestIdT = Aws::String>
97 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
98 template<typename RequestIdT = Aws::String>
99 BatchDeleteClusterNodesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
101 private:
102
104 bool m_failedHasBeenSet = false;
105
106 Aws::Vector<Aws::String> m_successful;
107 bool m_successfulHasBeenSet = false;
108
110 bool m_failedNodeLogicalIdsHasBeenSet = false;
111
112 Aws::Vector<Aws::String> m_successfulNodeLogicalIds;
113 bool m_successfulNodeLogicalIdsHasBeenSet = false;
114
115 Aws::String m_requestId;
116 bool m_requestIdHasBeenSet = false;
117 };
118
119} // namespace Model
120} // namespace SageMaker
121} // namespace Aws
AWS_SAGEMAKER_API BatchDeleteClusterNodesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< BatchDeleteClusterNodeLogicalIdsError > & GetFailedNodeLogicalIds() const
AWS_SAGEMAKER_API BatchDeleteClusterNodesResult()=default
BatchDeleteClusterNodesResult & WithSuccessfulNodeLogicalIds(SuccessfulNodeLogicalIdsT &&value)
BatchDeleteClusterNodesResult & WithFailed(FailedT &&value)
void SetSuccessfulNodeLogicalIds(SuccessfulNodeLogicalIdsT &&value)
BatchDeleteClusterNodesResult & AddFailed(FailedT &&value)
BatchDeleteClusterNodesResult & AddSuccessful(SuccessfulT &&value)
BatchDeleteClusterNodesResult & WithSuccessful(SuccessfulT &&value)
const Aws::Vector< BatchDeleteClusterNodesError > & GetFailed() const
BatchDeleteClusterNodesResult & WithFailedNodeLogicalIds(FailedNodeLogicalIdsT &&value)
BatchDeleteClusterNodesResult & AddSuccessfulNodeLogicalIds(SuccessfulNodeLogicalIdsT &&value)
const Aws::Vector< Aws::String > & GetSuccessfulNodeLogicalIds() const
BatchDeleteClusterNodesResult & WithRequestId(RequestIdT &&value)
BatchDeleteClusterNodesResult & AddFailedNodeLogicalIds(FailedNodeLogicalIdsT &&value)
AWS_SAGEMAKER_API BatchDeleteClusterNodesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue