7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
11#include <aws/servicediscovery/model/InstanceSummary.h>
16template <
typename RESULT_TYPE>
17class AmazonWebServiceResult;
24namespace ServiceDiscovery {
39 template <
typename ResourceOwnerT = Aws::String>
41 m_resourceOwnerHasBeenSet =
true;
42 m_resourceOwner = std::forward<ResourceOwnerT>(value);
44 template <
typename ResourceOwnerT = Aws::String>
57 template <
typename InstancesT = Aws::Vector<InstanceSummary>>
59 m_instancesHasBeenSet =
true;
60 m_instances = std::forward<InstancesT>(value);
62 template <
typename InstancesT = Aws::Vector<InstanceSummary>>
67 template <
typename InstancesT = InstanceSummary>
69 m_instancesHasBeenSet =
true;
70 m_instances.emplace_back(std::forward<InstancesT>(value));
83 template <
typename NextTokenT = Aws::String>
85 m_nextTokenHasBeenSet =
true;
86 m_nextToken = std::forward<NextTokenT>(value);
88 template <
typename NextTokenT = Aws::String>
98 template <
typename RequestIdT = Aws::String>
100 m_requestIdHasBeenSet =
true;
101 m_requestId = std::forward<RequestIdT>(value);
103 template <
typename RequestIdT = Aws::String>
120 bool m_resourceOwnerHasBeenSet =
false;
121 bool m_instancesHasBeenSet =
false;
122 bool m_nextTokenHasBeenSet =
false;
123 bool m_requestIdHasBeenSet =
false;
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetNextToken() const
AWS_SERVICEDISCOVERY_API ListInstancesResult()=default
void SetNextToken(NextTokenT &&value)
void SetRequestId(RequestIdT &&value)
AWS_SERVICEDISCOVERY_API ListInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListInstancesResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetResourceOwner() const
void SetInstances(InstancesT &&value)
void SetResourceOwner(ResourceOwnerT &&value)
ListInstancesResult & WithResourceOwner(ResourceOwnerT &&value)
ListInstancesResult & WithNextToken(NextTokenT &&value)
const Aws::Vector< InstanceSummary > & GetInstances() const
ListInstancesResult & WithInstances(InstancesT &&value)
ListInstancesResult & AddInstances(InstancesT &&value)
AWS_SERVICEDISCOVERY_API ListInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRequestId() 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