AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
BatchAddClusterNodesResult.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/NodeAdditionResult.h>
11#include <aws/sagemaker/model/BatchAddClusterNodesError.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 BatchAddClusterNodesResult() = default;
36
37
39
47 inline const Aws::Vector<NodeAdditionResult>& GetSuccessful() const { return m_successful; }
48 template<typename SuccessfulT = Aws::Vector<NodeAdditionResult>>
49 void SetSuccessful(SuccessfulT&& value) { m_successfulHasBeenSet = true; m_successful = std::forward<SuccessfulT>(value); }
50 template<typename SuccessfulT = Aws::Vector<NodeAdditionResult>>
51 BatchAddClusterNodesResult& WithSuccessful(SuccessfulT&& value) { SetSuccessful(std::forward<SuccessfulT>(value)); return *this;}
52 template<typename SuccessfulT = NodeAdditionResult>
53 BatchAddClusterNodesResult& AddSuccessful(SuccessfulT&& value) { m_successfulHasBeenSet = true; m_successful.emplace_back(std::forward<SuccessfulT>(value)); return *this; }
55
57
62 inline const Aws::Vector<BatchAddClusterNodesError>& GetFailed() const { return m_failed; }
63 template<typename FailedT = Aws::Vector<BatchAddClusterNodesError>>
64 void SetFailed(FailedT&& value) { m_failedHasBeenSet = true; m_failed = std::forward<FailedT>(value); }
65 template<typename FailedT = Aws::Vector<BatchAddClusterNodesError>>
66 BatchAddClusterNodesResult& WithFailed(FailedT&& value) { SetFailed(std::forward<FailedT>(value)); return *this;}
67 template<typename FailedT = BatchAddClusterNodesError>
68 BatchAddClusterNodesResult& AddFailed(FailedT&& value) { m_failedHasBeenSet = true; m_failed.emplace_back(std::forward<FailedT>(value)); return *this; }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template<typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
76 template<typename RequestIdT = Aws::String>
77 BatchAddClusterNodesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
79 private:
80
82 bool m_successfulHasBeenSet = false;
83
85 bool m_failedHasBeenSet = false;
86
87 Aws::String m_requestId;
88 bool m_requestIdHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace SageMaker
93} // namespace Aws
BatchAddClusterNodesResult & WithFailed(FailedT &&value)
const Aws::Vector< BatchAddClusterNodesError > & GetFailed() const
BatchAddClusterNodesResult & AddSuccessful(SuccessfulT &&value)
AWS_SAGEMAKER_API BatchAddClusterNodesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
BatchAddClusterNodesResult & AddFailed(FailedT &&value)
AWS_SAGEMAKER_API BatchAddClusterNodesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< NodeAdditionResult > & GetSuccessful() const
BatchAddClusterNodesResult & WithRequestId(RequestIdT &&value)
BatchAddClusterNodesResult & WithSuccessful(SuccessfulT &&value)
AWS_SAGEMAKER_API BatchAddClusterNodesResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue