AWS SDK for C++  1.9.108
AWS SDK for C++
CreateSnapshotResult.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 CreateSnapshotResult& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
69 
74  inline CreateSnapshotResult& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;}
75 
80  inline CreateSnapshotResult& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
81 
82 
89  inline const Aws::String& GetSnapshotId() const{ return m_snapshotId; }
90 
97  inline void SetSnapshotId(const Aws::String& value) { m_snapshotId = value; }
98 
105  inline void SetSnapshotId(Aws::String&& value) { m_snapshotId = std::move(value); }
106 
113  inline void SetSnapshotId(const char* value) { m_snapshotId.assign(value); }
114 
121  inline CreateSnapshotResult& WithSnapshotId(const Aws::String& value) { SetSnapshotId(value); return *this;}
122 
129  inline CreateSnapshotResult& WithSnapshotId(Aws::String&& value) { SetSnapshotId(std::move(value)); return *this;}
130 
137  inline CreateSnapshotResult& WithSnapshotId(const char* value) { SetSnapshotId(value); return *this;}
138 
139  private:
140 
141  Aws::String m_volumeARN;
142 
143  Aws::String m_snapshotId;
144  };
145 
146 } // namespace Model
147 } // namespace StorageGateway
148 } // namespace Aws
Aws::StorageGateway::Model::CreateSnapshotResult::SetVolumeARN
void SetVolumeARN(Aws::String &&value)
Definition: CreateSnapshotResult.h:56
Aws::StorageGateway::Model::CreateSnapshotResult::GetVolumeARN
const Aws::String & GetVolumeARN() const
Definition: CreateSnapshotResult.h:44
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
Aws::StorageGateway::Model::CreateSnapshotResult::GetSnapshotId
const Aws::String & GetSnapshotId() const
Definition: CreateSnapshotResult.h:89
Aws::StorageGateway::Model::CreateSnapshotResult::SetVolumeARN
void SetVolumeARN(const char *value)
Definition: CreateSnapshotResult.h:62
Aws::StorageGateway::Model::CreateSnapshotResult::CreateSnapshotResult
CreateSnapshotResult()
Aws::StorageGateway::Model::CreateSnapshotResult::SetSnapshotId
void SetSnapshotId(const char *value)
Definition: CreateSnapshotResult.h:113
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::CreateSnapshotResult::operator=
CreateSnapshotResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::StorageGateway::Model::CreateSnapshotResult::CreateSnapshotResult
CreateSnapshotResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::StorageGateway::Model::CreateSnapshotResult::SetSnapshotId
void SetSnapshotId(Aws::String &&value)
Definition: CreateSnapshotResult.h:105
Aws::StorageGateway::Model::CreateSnapshotResult::SetSnapshotId
void SetSnapshotId(const Aws::String &value)
Definition: CreateSnapshotResult.h:97
Aws::StorageGateway::Model::CreateSnapshotResult::WithSnapshotId
CreateSnapshotResult & WithSnapshotId(Aws::String &&value)
Definition: CreateSnapshotResult.h:129
Aws
Definition: AccessManagementClient.h:15
Aws::StorageGateway::Model::CreateSnapshotResult::WithSnapshotId
CreateSnapshotResult & WithSnapshotId(const char *value)
Definition: CreateSnapshotResult.h:137
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::CreateSnapshotResult::WithVolumeARN
CreateSnapshotResult & WithVolumeARN(const char *value)
Definition: CreateSnapshotResult.h:80
Aws::StorageGateway::Model::CreateSnapshotResult::WithVolumeARN
CreateSnapshotResult & WithVolumeARN(Aws::String &&value)
Definition: CreateSnapshotResult.h:74
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::CreateSnapshotResult
Definition: CreateSnapshotResult.h:33
Aws::StorageGateway::Model::CreateSnapshotResult::WithVolumeARN
CreateSnapshotResult & WithVolumeARN(const Aws::String &value)
Definition: CreateSnapshotResult.h:68
Aws::StorageGateway::Model::CreateSnapshotResult::SetVolumeARN
void SetVolumeARN(const Aws::String &value)
Definition: CreateSnapshotResult.h:50
Aws::StorageGateway::Model::CreateSnapshotResult::WithSnapshotId
CreateSnapshotResult & WithSnapshotId(const Aws::String &value)
Definition: CreateSnapshotResult.h:121