AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UngroupResourcesResult.h
1
6#pragma once
7#include <aws/resource-groups/ResourceGroups_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/resource-groups/model/FailedResource.h>
11#include <aws/resource-groups/model/PendingResource.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 ResourceGroups
27{
28namespace Model
29{
31 {
32 public:
33 AWS_RESOURCEGROUPS_API UngroupResourcesResult();
36
37
39
43 inline const Aws::Vector<Aws::String>& GetSucceeded() const{ return m_succeeded; }
44 inline void SetSucceeded(const Aws::Vector<Aws::String>& value) { m_succeeded = value; }
45 inline void SetSucceeded(Aws::Vector<Aws::String>&& value) { m_succeeded = std::move(value); }
46 inline UngroupResourcesResult& WithSucceeded(const Aws::Vector<Aws::String>& value) { SetSucceeded(value); return *this;}
47 inline UngroupResourcesResult& WithSucceeded(Aws::Vector<Aws::String>&& value) { SetSucceeded(std::move(value)); return *this;}
48 inline UngroupResourcesResult& AddSucceeded(const Aws::String& value) { m_succeeded.push_back(value); return *this; }
49 inline UngroupResourcesResult& AddSucceeded(Aws::String&& value) { m_succeeded.push_back(std::move(value)); return *this; }
50 inline UngroupResourcesResult& AddSucceeded(const char* value) { m_succeeded.push_back(value); return *this; }
52
54
58 inline const Aws::Vector<FailedResource>& GetFailed() const{ return m_failed; }
59 inline void SetFailed(const Aws::Vector<FailedResource>& value) { m_failed = value; }
60 inline void SetFailed(Aws::Vector<FailedResource>&& value) { m_failed = std::move(value); }
61 inline UngroupResourcesResult& WithFailed(const Aws::Vector<FailedResource>& value) { SetFailed(value); return *this;}
62 inline UngroupResourcesResult& WithFailed(Aws::Vector<FailedResource>&& value) { SetFailed(std::move(value)); return *this;}
63 inline UngroupResourcesResult& AddFailed(const FailedResource& value) { m_failed.push_back(value); return *this; }
64 inline UngroupResourcesResult& AddFailed(FailedResource&& value) { m_failed.push_back(std::move(value)); return *this; }
66
68
75 inline const Aws::Vector<PendingResource>& GetPending() const{ return m_pending; }
76 inline void SetPending(const Aws::Vector<PendingResource>& value) { m_pending = value; }
77 inline void SetPending(Aws::Vector<PendingResource>&& value) { m_pending = std::move(value); }
78 inline UngroupResourcesResult& WithPending(const Aws::Vector<PendingResource>& value) { SetPending(value); return *this;}
79 inline UngroupResourcesResult& WithPending(Aws::Vector<PendingResource>&& value) { SetPending(std::move(value)); return *this;}
80 inline UngroupResourcesResult& AddPending(const PendingResource& value) { m_pending.push_back(value); return *this; }
81 inline UngroupResourcesResult& AddPending(PendingResource&& value) { m_pending.push_back(std::move(value)); return *this; }
83
85
86 inline const Aws::String& GetRequestId() const{ return m_requestId; }
87 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
88 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
89 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
90 inline UngroupResourcesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
91 inline UngroupResourcesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
92 inline UngroupResourcesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
94 private:
95
96 Aws::Vector<Aws::String> m_succeeded;
97
99
101
102 Aws::String m_requestId;
103 };
104
105} // namespace Model
106} // namespace ResourceGroups
107} // namespace Aws
UngroupResourcesResult & WithRequestId(Aws::String &&value)
UngroupResourcesResult & AddPending(const PendingResource &value)
void SetPending(Aws::Vector< PendingResource > &&value)
const Aws::Vector< PendingResource > & GetPending() const
UngroupResourcesResult & WithPending(Aws::Vector< PendingResource > &&value)
UngroupResourcesResult & AddSucceeded(const char *value)
UngroupResourcesResult & WithFailed(Aws::Vector< FailedResource > &&value)
UngroupResourcesResult & WithFailed(const Aws::Vector< FailedResource > &value)
UngroupResourcesResult & WithRequestId(const Aws::String &value)
UngroupResourcesResult & AddPending(PendingResource &&value)
AWS_RESOURCEGROUPS_API UngroupResourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPending(const Aws::Vector< PendingResource > &value)
UngroupResourcesResult & WithRequestId(const char *value)
UngroupResourcesResult & AddSucceeded(const Aws::String &value)
UngroupResourcesResult & AddFailed(FailedResource &&value)
void SetFailed(Aws::Vector< FailedResource > &&value)
AWS_RESOURCEGROUPS_API UngroupResourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< FailedResource > & GetFailed() const
UngroupResourcesResult & WithSucceeded(const Aws::Vector< Aws::String > &value)
UngroupResourcesResult & WithPending(const Aws::Vector< PendingResource > &value)
void SetSucceeded(const Aws::Vector< Aws::String > &value)
UngroupResourcesResult & WithSucceeded(Aws::Vector< Aws::String > &&value)
void SetSucceeded(Aws::Vector< Aws::String > &&value)
void SetFailed(const Aws::Vector< FailedResource > &value)
UngroupResourcesResult & AddSucceeded(Aws::String &&value)
UngroupResourcesResult & AddFailed(const FailedResource &value)
const Aws::Vector< Aws::String > & GetSucceeded() 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