AWS SDK for C++  1.9.104
AWS SDK for C++
DiscoverInstancesResult.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 template<typename RESULT_TYPE>
15 class AmazonWebServiceResult;
16 
17 namespace Utils
18 {
19 namespace Json
20 {
21  class JsonValue;
22 } // namespace Json
23 } // namespace Utils
24 namespace ServiceDiscovery
25 {
26 namespace Model
27 {
29  {
30  public:
34 
35 
40  inline const Aws::Vector<HttpInstanceSummary>& GetInstances() const{ return m_instances; }
41 
46  inline void SetInstances(const Aws::Vector<HttpInstanceSummary>& value) { m_instances = value; }
47 
52  inline void SetInstances(Aws::Vector<HttpInstanceSummary>&& value) { m_instances = std::move(value); }
53 
58  inline DiscoverInstancesResult& WithInstances(const Aws::Vector<HttpInstanceSummary>& value) { SetInstances(value); return *this;}
59 
64  inline DiscoverInstancesResult& WithInstances(Aws::Vector<HttpInstanceSummary>&& value) { SetInstances(std::move(value)); return *this;}
65 
70  inline DiscoverInstancesResult& AddInstances(const HttpInstanceSummary& value) { m_instances.push_back(value); return *this; }
71 
76  inline DiscoverInstancesResult& AddInstances(HttpInstanceSummary&& value) { m_instances.push_back(std::move(value)); return *this; }
77 
78  private:
79 
81  };
82 
83 } // namespace Model
84 } // namespace ServiceDiscovery
85 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
AWS_SERVICEDISCOVERY_API
#define AWS_SERVICEDISCOVERY_API
Definition: ServiceDiscovery_EXPORTS.h:28
Aws::ServiceDiscovery::Model::HttpInstanceSummary
Definition: HttpInstanceSummary.h:38
ServiceDiscovery_EXPORTS.h
Aws::ServiceDiscovery::Model::DiscoverInstancesResult::SetInstances
void SetInstances(const Aws::Vector< HttpInstanceSummary > &value)
Definition: DiscoverInstancesResult.h:46
Aws::ServiceDiscovery::Model::DiscoverInstancesResult::WithInstances
DiscoverInstancesResult & WithInstances(Aws::Vector< HttpInstanceSummary > &&value)
Definition: DiscoverInstancesResult.h:64
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ServiceDiscovery::Model::DiscoverInstancesResult::DiscoverInstancesResult
DiscoverInstancesResult()
AWSVector.h
Aws::ServiceDiscovery::Model::DiscoverInstancesResult::AddInstances
DiscoverInstancesResult & AddInstances(const HttpInstanceSummary &value)
Definition: DiscoverInstancesResult.h:70
Aws::ServiceDiscovery::Model::DiscoverInstancesResult::GetInstances
const Aws::Vector< HttpInstanceSummary > & GetInstances() const
Definition: DiscoverInstancesResult.h:40
Aws::ServiceDiscovery::Model::DiscoverInstancesResult::WithInstances
DiscoverInstancesResult & WithInstances(const Aws::Vector< HttpInstanceSummary > &value)
Definition: DiscoverInstancesResult.h:58
Aws::ServiceDiscovery::Model::DiscoverInstancesResult::operator=
DiscoverInstancesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::ServiceDiscovery::Model::DiscoverInstancesResult::DiscoverInstancesResult
DiscoverInstancesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
HttpInstanceSummary.h
Aws::ServiceDiscovery::Model::DiscoverInstancesResult
Definition: DiscoverInstancesResult.h:29
Aws::ServiceDiscovery::Model::DiscoverInstancesResult::AddInstances
DiscoverInstancesResult & AddInstances(HttpInstanceSummary &&value)
Definition: DiscoverInstancesResult.h:76
Aws::ServiceDiscovery::Model::DiscoverInstancesResult::SetInstances
void SetInstances(Aws::Vector< HttpInstanceSummary > &&value)
Definition: DiscoverInstancesResult.h:52