AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetStaticIpResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/StaticIp.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 Lightsail {
24namespace Model {
26 public:
27 AWS_LIGHTSAIL_API GetStaticIpResult() = default;
30
32
36 inline const StaticIp& GetStaticIp() const { return m_staticIp; }
37 template <typename StaticIpT = StaticIp>
38 void SetStaticIp(StaticIpT&& value) {
39 m_staticIpHasBeenSet = true;
40 m_staticIp = std::forward<StaticIpT>(value);
41 }
42 template <typename StaticIpT = StaticIp>
43 GetStaticIpResult& WithStaticIp(StaticIpT&& value) {
44 SetStaticIp(std::forward<StaticIpT>(value));
45 return *this;
46 }
48
50
51 inline const Aws::String& GetRequestId() const { return m_requestId; }
52 template <typename RequestIdT = Aws::String>
53 void SetRequestId(RequestIdT&& value) {
54 m_requestIdHasBeenSet = true;
55 m_requestId = std::forward<RequestIdT>(value);
56 }
57 template <typename RequestIdT = Aws::String>
58 GetStaticIpResult& WithRequestId(RequestIdT&& value) {
59 SetRequestId(std::forward<RequestIdT>(value));
60 return *this;
61 }
63 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
64
65 private:
66 StaticIp m_staticIp;
67
68 Aws::String m_requestId;
69 Aws::Http::HttpResponseCode m_HttpResponseCode;
70 bool m_staticIpHasBeenSet = false;
71 bool m_requestIdHasBeenSet = false;
72};
73
74} // namespace Model
75} // namespace Lightsail
76} // namespace Aws
AWS_LIGHTSAIL_API GetStaticIpResult()=default
AWS_LIGHTSAIL_API GetStaticIpResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API GetStaticIpResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetStaticIpResult & WithStaticIp(StaticIpT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::String & GetRequestId() const
GetStaticIpResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue