AWS SDK for C++

AWS SDK for C++ Version 1.11.927

Loading...
Searching...
No Matches
AttachVolumeResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/storagegateway/StorageGateway_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace StorageGateway {
23namespace Model {
30 public:
31 AWS_STORAGEGATEWAY_API AttachVolumeResult() = default;
34
36
40 inline const Aws::String& GetVolumeARN() const { return m_volumeARN; }
41 template <typename VolumeARNT = Aws::String>
42 void SetVolumeARN(VolumeARNT&& value) {
43 m_volumeARNHasBeenSet = true;
44 m_volumeARN = std::forward<VolumeARNT>(value);
45 }
46 template <typename VolumeARNT = Aws::String>
47 AttachVolumeResult& WithVolumeARN(VolumeARNT&& value) {
48 SetVolumeARN(std::forward<VolumeARNT>(value));
49 return *this;
50 }
52
54
58 inline const Aws::String& GetTargetARN() const { return m_targetARN; }
59 template <typename TargetARNT = Aws::String>
60 void SetTargetARN(TargetARNT&& value) {
61 m_targetARNHasBeenSet = true;
62 m_targetARN = std::forward<TargetARNT>(value);
63 }
64 template <typename TargetARNT = Aws::String>
65 AttachVolumeResult& WithTargetARN(TargetARNT&& value) {
66 SetTargetARN(std::forward<TargetARNT>(value));
67 return *this;
68 }
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template <typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) {
76 m_requestIdHasBeenSet = true;
77 m_requestId = std::forward<RequestIdT>(value);
78 }
79 template <typename RequestIdT = Aws::String>
80 AttachVolumeResult& WithRequestId(RequestIdT&& value) {
81 SetRequestId(std::forward<RequestIdT>(value));
82 return *this;
83 }
85 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
86
87 private:
88 Aws::String m_volumeARN;
89
90 Aws::String m_targetARN;
91
92 Aws::String m_requestId;
93 Aws::Http::HttpResponseCode m_HttpResponseCode;
94 bool m_volumeARNHasBeenSet = false;
95 bool m_targetARNHasBeenSet = false;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace StorageGateway
101} // namespace Aws
AWS_STORAGEGATEWAY_API AttachVolumeResult()=default
AWS_STORAGEGATEWAY_API AttachVolumeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AttachVolumeResult & WithRequestId(RequestIdT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
AttachVolumeResult & WithVolumeARN(VolumeARNT &&value)
AttachVolumeResult & WithTargetARN(TargetARNT &&value)
AWS_STORAGEGATEWAY_API AttachVolumeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue