AWS SDK for C++  1.9.106
AWS SDK for C++
CreateSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace StorageGateway
17 {
18 namespace Model
19 {
20 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshot"; }
38 
39  Aws::String SerializePayload() const override;
40 
42 
43 
48  inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; }
49 
54  inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
55 
60  inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
61 
66  inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); }
67 
72  inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); }
73 
78  inline CreateSnapshotRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
79 
84  inline CreateSnapshotRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;}
85 
90  inline CreateSnapshotRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
91 
92 
98  inline const Aws::String& GetSnapshotDescription() const{ return m_snapshotDescription; }
99 
105  inline bool SnapshotDescriptionHasBeenSet() const { return m_snapshotDescriptionHasBeenSet; }
106 
112  inline void SetSnapshotDescription(const Aws::String& value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription = value; }
113 
119  inline void SetSnapshotDescription(Aws::String&& value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription = std::move(value); }
120 
126  inline void SetSnapshotDescription(const char* value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription.assign(value); }
127 
133  inline CreateSnapshotRequest& WithSnapshotDescription(const Aws::String& value) { SetSnapshotDescription(value); return *this;}
134 
140  inline CreateSnapshotRequest& WithSnapshotDescription(Aws::String&& value) { SetSnapshotDescription(std::move(value)); return *this;}
141 
147  inline CreateSnapshotRequest& WithSnapshotDescription(const char* value) { SetSnapshotDescription(value); return *this;}
148 
149 
157  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
158 
166  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
167 
175  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
176 
184  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
185 
193  inline CreateSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
194 
202  inline CreateSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
203 
211  inline CreateSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
212 
220  inline CreateSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
221 
222  private:
223 
224  Aws::String m_volumeARN;
225  bool m_volumeARNHasBeenSet;
226 
227  Aws::String m_snapshotDescription;
228  bool m_snapshotDescriptionHasBeenSet;
229 
230  Aws::Vector<Tag> m_tags;
231  bool m_tagsHasBeenSet;
232  };
233 
234 } // namespace Model
235 } // namespace StorageGateway
236 } // namespace Aws
Aws::StorageGateway::Model::CreateSnapshotRequest::SetVolumeARN
void SetVolumeARN(Aws::String &&value)
Definition: CreateSnapshotRequest.h:66
Aws::StorageGateway::Model::CreateSnapshotRequest::WithVolumeARN
CreateSnapshotRequest & WithVolumeARN(const char *value)
Definition: CreateSnapshotRequest.h:90
Aws::StorageGateway::Model::CreateSnapshotRequest::AddTags
CreateSnapshotRequest & AddTags(const Tag &value)
Definition: CreateSnapshotRequest.h:211
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::CreateSnapshotRequest::WithSnapshotDescription
CreateSnapshotRequest & WithSnapshotDescription(Aws::String &&value)
Definition: CreateSnapshotRequest.h:140
Aws::StorageGateway::Model::CreateSnapshotRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateSnapshotRequest.h:184
Aws::StorageGateway::Model::Tag
Definition: Tag.h:34
Aws::StorageGateway::Model::CreateSnapshotRequest::WithTags
CreateSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateSnapshotRequest.h:202
Aws::StorageGateway::Model::CreateSnapshotRequest::CreateSnapshotRequest
CreateSnapshotRequest()
Aws::StorageGateway::Model::CreateSnapshotRequest::SetSnapshotDescription
void SetSnapshotDescription(const Aws::String &value)
Definition: CreateSnapshotRequest.h:112
Aws::StorageGateway::Model::CreateSnapshotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateSnapshotRequest.h:166
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::CreateSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
AWSVector.h
Aws::StorageGateway::Model::CreateSnapshotRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::CreateSnapshotRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateSnapshotRequest.h:175
Aws::StorageGateway::Model::CreateSnapshotRequest::WithSnapshotDescription
CreateSnapshotRequest & WithSnapshotDescription(const char *value)
Definition: CreateSnapshotRequest.h:147
Aws::StorageGateway::Model::CreateSnapshotRequest::SetSnapshotDescription
void SetSnapshotDescription(const char *value)
Definition: CreateSnapshotRequest.h:126
Aws::StorageGateway::Model::CreateSnapshotRequest::WithSnapshotDescription
CreateSnapshotRequest & WithSnapshotDescription(const Aws::String &value)
Definition: CreateSnapshotRequest.h:133
Aws::StorageGateway::Model::CreateSnapshotRequest::SetSnapshotDescription
void SetSnapshotDescription(Aws::String &&value)
Definition: CreateSnapshotRequest.h:119
Aws::StorageGateway::Model::CreateSnapshotRequest::SetVolumeARN
void SetVolumeARN(const Aws::String &value)
Definition: CreateSnapshotRequest.h:60
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::CreateSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSnapshotRequest.h:37
Aws::StorageGateway::Model::CreateSnapshotRequest::WithVolumeARN
CreateSnapshotRequest & WithVolumeARN(const Aws::String &value)
Definition: CreateSnapshotRequest.h:78
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::CreateSnapshotRequest::WithVolumeARN
CreateSnapshotRequest & WithVolumeARN(Aws::String &&value)
Definition: CreateSnapshotRequest.h:84
Aws::StorageGateway::Model::CreateSnapshotRequest::WithTags
CreateSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateSnapshotRequest.h:193
StorageGatewayRequest.h
Aws::StorageGateway::Model::CreateSnapshotRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateSnapshotRequest.h:157
Aws
Definition: AccessManagementClient.h:15
Tag.h
Aws::StorageGateway::Model::CreateSnapshotRequest::SnapshotDescriptionHasBeenSet
bool SnapshotDescriptionHasBeenSet() const
Definition: CreateSnapshotRequest.h:105
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::CreateSnapshotRequest::VolumeARNHasBeenSet
bool VolumeARNHasBeenSet() const
Definition: CreateSnapshotRequest.h:54
Aws::StorageGateway::Model::CreateSnapshotRequest
Definition: CreateSnapshotRequest.h:29
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::CreateSnapshotRequest::AddTags
CreateSnapshotRequest & AddTags(Tag &&value)
Definition: CreateSnapshotRequest.h:220
Aws::StorageGateway::Model::CreateSnapshotRequest::GetVolumeARN
const Aws::String & GetVolumeARN() const
Definition: CreateSnapshotRequest.h:48
Aws::StorageGateway::Model::CreateSnapshotRequest::GetSnapshotDescription
const Aws::String & GetSnapshotDescription() const
Definition: CreateSnapshotRequest.h:98
Aws::StorageGateway::Model::CreateSnapshotRequest::SetVolumeARN
void SetVolumeARN(const char *value)
Definition: CreateSnapshotRequest.h:72