AWS SDK for C++

AWS SDK for C++ Version 1.11.779

Loading...
Searching...
No Matches
GetInstanceResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
10#include <aws/servicediscovery/model/Instance.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ServiceDiscovery {
24namespace Model {
26 public:
27 AWS_SERVICEDISCOVERY_API GetInstanceResult() = default;
30
32
38 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
39 template <typename ResourceOwnerT = Aws::String>
40 void SetResourceOwner(ResourceOwnerT&& value) {
41 m_resourceOwnerHasBeenSet = true;
42 m_resourceOwner = std::forward<ResourceOwnerT>(value);
43 }
44 template <typename ResourceOwnerT = Aws::String>
45 GetInstanceResult& WithResourceOwner(ResourceOwnerT&& value) {
46 SetResourceOwner(std::forward<ResourceOwnerT>(value));
47 return *this;
48 }
50
52
55 inline const Instance& GetInstance() const { return m_instance; }
56 template <typename InstanceT = Instance>
57 void SetInstance(InstanceT&& value) {
58 m_instanceHasBeenSet = true;
59 m_instance = std::forward<InstanceT>(value);
60 }
61 template <typename InstanceT = Instance>
62 GetInstanceResult& WithInstance(InstanceT&& value) {
63 SetInstance(std::forward<InstanceT>(value));
64 return *this;
65 }
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template <typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) {
73 m_requestIdHasBeenSet = true;
74 m_requestId = std::forward<RequestIdT>(value);
75 }
76 template <typename RequestIdT = Aws::String>
77 GetInstanceResult& WithRequestId(RequestIdT&& value) {
78 SetRequestId(std::forward<RequestIdT>(value));
79 return *this;
80 }
82 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
83
84 private:
85 Aws::String m_resourceOwner;
86
87 Instance m_instance;
88
89 Aws::String m_requestId;
90 Aws::Http::HttpResponseCode m_HttpResponseCode;
91 bool m_resourceOwnerHasBeenSet = false;
92 bool m_instanceHasBeenSet = false;
93 bool m_requestIdHasBeenSet = false;
94};
95
96} // namespace Model
97} // namespace ServiceDiscovery
98} // namespace Aws
AWS_SERVICEDISCOVERY_API GetInstanceResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetInstanceResult & WithResourceOwner(ResourceOwnerT &&value)
AWS_SERVICEDISCOVERY_API GetInstanceResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetInstanceResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AWS_SERVICEDISCOVERY_API GetInstanceResult()=default
GetInstanceResult & WithInstance(InstanceT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue