AWS SDK for C++  1.9.124
AWS SDK for C++
AttachVolumeResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace StorageGateway
24 {
25 namespace Model
26 {
33  {
34  public:
38 
39 
44  inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; }
45 
50  inline void SetVolumeARN(const Aws::String& value) { m_volumeARN = value; }
51 
56  inline void SetVolumeARN(Aws::String&& value) { m_volumeARN = std::move(value); }
57 
62  inline void SetVolumeARN(const char* value) { m_volumeARN.assign(value); }
63 
68  inline AttachVolumeResult& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
69 
74  inline AttachVolumeResult& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;}
75 
80  inline AttachVolumeResult& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
81 
82 
87  inline const Aws::String& GetTargetARN() const{ return m_targetARN; }
88 
93  inline void SetTargetARN(const Aws::String& value) { m_targetARN = value; }
94 
99  inline void SetTargetARN(Aws::String&& value) { m_targetARN = std::move(value); }
100 
105  inline void SetTargetARN(const char* value) { m_targetARN.assign(value); }
106 
111  inline AttachVolumeResult& WithTargetARN(const Aws::String& value) { SetTargetARN(value); return *this;}
112 
117  inline AttachVolumeResult& WithTargetARN(Aws::String&& value) { SetTargetARN(std::move(value)); return *this;}
118 
123  inline AttachVolumeResult& WithTargetARN(const char* value) { SetTargetARN(value); return *this;}
124 
125  private:
126 
127  Aws::String m_volumeARN;
128 
129  Aws::String m_targetARN;
130  };
131 
132 } // namespace Model
133 } // namespace StorageGateway
134 } // namespace Aws
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::StorageGateway::Model::AttachVolumeResult::SetTargetARN
void SetTargetARN(const char *value)
Definition: AttachVolumeResult.h:105
Aws::StorageGateway::Model::AttachVolumeResult::SetVolumeARN
void SetVolumeARN(Aws::String &&value)
Definition: AttachVolumeResult.h:56
Aws::StorageGateway::Model::AttachVolumeResult::WithTargetARN
AttachVolumeResult & WithTargetARN(const char *value)
Definition: AttachVolumeResult.h:123
Aws::StorageGateway::Model::AttachVolumeResult::WithVolumeARN
AttachVolumeResult & WithVolumeARN(const Aws::String &value)
Definition: AttachVolumeResult.h:68
Aws::StorageGateway::Model::AttachVolumeResult::SetVolumeARN
void SetVolumeARN(const Aws::String &value)
Definition: AttachVolumeResult.h:50
Aws::StorageGateway::Model::AttachVolumeResult::AttachVolumeResult
AttachVolumeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::StorageGateway::Model::AttachVolumeResult
Definition: AttachVolumeResult.h:33
Aws::StorageGateway::Model::AttachVolumeResult::GetVolumeARN
const Aws::String & GetVolumeARN() const
Definition: AttachVolumeResult.h:44
Aws::StorageGateway::Model::AttachVolumeResult::SetVolumeARN
void SetVolumeARN(const char *value)
Definition: AttachVolumeResult.h:62
Aws::StorageGateway::Model::AttachVolumeResult::WithTargetARN
AttachVolumeResult & WithTargetARN(Aws::String &&value)
Definition: AttachVolumeResult.h:117
Aws::StorageGateway::Model::AttachVolumeResult::WithVolumeARN
AttachVolumeResult & WithVolumeARN(Aws::String &&value)
Definition: AttachVolumeResult.h:74
Aws::StorageGateway::Model::AttachVolumeResult::AttachVolumeResult
AttachVolumeResult()
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::AttachVolumeResult::operator=
AttachVolumeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws
Definition: AccessManagementClient.h:15
StorageGateway_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::AttachVolumeResult::SetTargetARN
void SetTargetARN(Aws::String &&value)
Definition: AttachVolumeResult.h:99
Aws::StorageGateway::Model::AttachVolumeResult::SetTargetARN
void SetTargetARN(const Aws::String &value)
Definition: AttachVolumeResult.h:93
Aws::StorageGateway::Model::AttachVolumeResult::GetTargetARN
const Aws::String & GetTargetARN() const
Definition: AttachVolumeResult.h:87
Aws::StorageGateway::Model::AttachVolumeResult::WithTargetARN
AttachVolumeResult & WithTargetARN(const Aws::String &value)
Definition: AttachVolumeResult.h:111
Aws::StorageGateway::Model::AttachVolumeResult::WithVolumeARN
AttachVolumeResult & WithVolumeARN(const char *value)
Definition: AttachVolumeResult.h:80