AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GroupResourcesResult.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 GroupResourcesResult();
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 GroupResourcesResult& WithSucceeded(const Aws::Vector<Aws::String>& value) { SetSucceeded(value); return *this;}
47 inline GroupResourcesResult& WithSucceeded(Aws::Vector<Aws::String>&& value) { SetSucceeded(std::move(value)); return *this;}
48 inline GroupResourcesResult& AddSucceeded(const Aws::String& value) { m_succeeded.push_back(value); return *this; }
49 inline GroupResourcesResult& AddSucceeded(Aws::String&& value) { m_succeeded.push_back(std::move(value)); return *this; }
50 inline GroupResourcesResult& 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 GroupResourcesResult& WithFailed(const Aws::Vector<FailedResource>& value) { SetFailed(value); return *this;}
62 inline GroupResourcesResult& WithFailed(Aws::Vector<FailedResource>&& value) { SetFailed(std::move(value)); return *this;}
63 inline GroupResourcesResult& AddFailed(const FailedResource& value) { m_failed.push_back(value); return *this; }
64 inline GroupResourcesResult& AddFailed(FailedResource&& value) { m_failed.push_back(std::move(value)); return *this; }
66
68
76 inline const Aws::Vector<PendingResource>& GetPending() const{ return m_pending; }
77 inline void SetPending(const Aws::Vector<PendingResource>& value) { m_pending = value; }
78 inline void SetPending(Aws::Vector<PendingResource>&& value) { m_pending = std::move(value); }
79 inline GroupResourcesResult& WithPending(const Aws::Vector<PendingResource>& value) { SetPending(value); return *this;}
80 inline GroupResourcesResult& WithPending(Aws::Vector<PendingResource>&& value) { SetPending(std::move(value)); return *this;}
81 inline GroupResourcesResult& AddPending(const PendingResource& value) { m_pending.push_back(value); return *this; }
82 inline GroupResourcesResult& AddPending(PendingResource&& value) { m_pending.push_back(std::move(value)); return *this; }
84
86
87 inline const Aws::String& GetRequestId() const{ return m_requestId; }
88 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
89 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
90 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
91 inline GroupResourcesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
92 inline GroupResourcesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
93 inline GroupResourcesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
95 private:
96
97 Aws::Vector<Aws::String> m_succeeded;
98
100
102
103 Aws::String m_requestId;
104 };
105
106} // namespace Model
107} // namespace ResourceGroups
108} // namespace Aws
void SetSucceeded(const Aws::Vector< Aws::String > &value)
GroupResourcesResult & WithRequestId(const Aws::String &value)
GroupResourcesResult & WithRequestId(Aws::String &&value)
GroupResourcesResult & WithFailed(Aws::Vector< FailedResource > &&value)
GroupResourcesResult & AddPending(PendingResource &&value)
const Aws::Vector< Aws::String > & GetSucceeded() const
GroupResourcesResult & AddPending(const PendingResource &value)
void SetPending(Aws::Vector< PendingResource > &&value)
void SetSucceeded(Aws::Vector< Aws::String > &&value)
AWS_RESOURCEGROUPS_API GroupResourcesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GroupResourcesResult & WithPending(const Aws::Vector< PendingResource > &value)
GroupResourcesResult & WithFailed(const Aws::Vector< FailedResource > &value)
GroupResourcesResult & AddFailed(FailedResource &&value)
GroupResourcesResult & AddFailed(const FailedResource &value)
GroupResourcesResult & AddSucceeded(Aws::String &&value)
const Aws::Vector< PendingResource > & GetPending() const
const Aws::Vector< FailedResource > & GetFailed() const
GroupResourcesResult & AddSucceeded(const Aws::String &value)
GroupResourcesResult & WithPending(Aws::Vector< PendingResource > &&value)
GroupResourcesResult & WithSucceeded(Aws::Vector< Aws::String > &&value)
GroupResourcesResult & WithRequestId(const char *value)
AWS_RESOURCEGROUPS_API GroupResourcesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetPending(const Aws::Vector< PendingResource > &value)
GroupResourcesResult & WithSucceeded(const Aws::Vector< Aws::String > &value)
void SetFailed(const Aws::Vector< FailedResource > &value)
GroupResourcesResult & AddSucceeded(const char *value)
void SetFailed(Aws::Vector< FailedResource > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue