AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DiscoverInstancesResult.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/servicediscovery/model/HttpInstanceSummary.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ServiceDiscovery
26{
27namespace Model
28{
30 {
31 public:
32 AWS_SERVICEDISCOVERY_API DiscoverInstancesResult();
35
36
38
42 inline const Aws::Vector<HttpInstanceSummary>& GetInstances() const{ return m_instances; }
43 inline void SetInstances(const Aws::Vector<HttpInstanceSummary>& value) { m_instances = value; }
44 inline void SetInstances(Aws::Vector<HttpInstanceSummary>&& value) { m_instances = std::move(value); }
46 inline DiscoverInstancesResult& WithInstances(Aws::Vector<HttpInstanceSummary>&& value) { SetInstances(std::move(value)); return *this;}
47 inline DiscoverInstancesResult& AddInstances(const HttpInstanceSummary& value) { m_instances.push_back(value); return *this; }
48 inline DiscoverInstancesResult& AddInstances(HttpInstanceSummary&& value) { m_instances.push_back(std::move(value)); return *this; }
50
52
58 inline long long GetInstancesRevision() const{ return m_instancesRevision; }
59 inline void SetInstancesRevision(long long value) { m_instancesRevision = value; }
60 inline DiscoverInstancesResult& WithInstancesRevision(long long value) { SetInstancesRevision(value); return *this;}
62
64
65 inline const Aws::String& GetRequestId() const{ return m_requestId; }
66 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
67 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
68 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
69 inline DiscoverInstancesResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
70 inline DiscoverInstancesResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
71 inline DiscoverInstancesResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
73 private:
74
76
77 long long m_instancesRevision;
78
79 Aws::String m_requestId;
80 };
81
82} // namespace Model
83} // namespace ServiceDiscovery
84} // namespace Aws
DiscoverInstancesResult & WithInstancesRevision(long long value)
AWS_SERVICEDISCOVERY_API DiscoverInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< HttpInstanceSummary > & GetInstances() const
DiscoverInstancesResult & WithRequestId(const char *value)
DiscoverInstancesResult & WithRequestId(const Aws::String &value)
DiscoverInstancesResult & AddInstances(const HttpInstanceSummary &value)
DiscoverInstancesResult & WithInstances(Aws::Vector< HttpInstanceSummary > &&value)
DiscoverInstancesResult & WithRequestId(Aws::String &&value)
DiscoverInstancesResult & WithInstances(const Aws::Vector< HttpInstanceSummary > &value)
AWS_SERVICEDISCOVERY_API DiscoverInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
DiscoverInstancesResult & AddInstances(HttpInstanceSummary &&value)
void SetInstances(const Aws::Vector< HttpInstanceSummary > &value)
void SetInstances(Aws::Vector< HttpInstanceSummary > &&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