AWS SDK for C++  1.9.106
AWS SDK for C++
CreateSnapshotFromVolumeRecoveryPointRequest.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 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "CreateSnapshotFromVolumeRecoveryPoint"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
44  inline const Aws::String& GetVolumeARN() const{ return m_volumeARN; }
45 
51  inline bool VolumeARNHasBeenSet() const { return m_volumeARNHasBeenSet; }
52 
58  inline void SetVolumeARN(const Aws::String& value) { m_volumeARNHasBeenSet = true; m_volumeARN = value; }
59 
65  inline void SetVolumeARN(Aws::String&& value) { m_volumeARNHasBeenSet = true; m_volumeARN = std::move(value); }
66 
72  inline void SetVolumeARN(const char* value) { m_volumeARNHasBeenSet = true; m_volumeARN.assign(value); }
73 
79  inline CreateSnapshotFromVolumeRecoveryPointRequest& WithVolumeARN(const Aws::String& value) { SetVolumeARN(value); return *this;}
80 
86  inline CreateSnapshotFromVolumeRecoveryPointRequest& WithVolumeARN(Aws::String&& value) { SetVolumeARN(std::move(value)); return *this;}
87 
93  inline CreateSnapshotFromVolumeRecoveryPointRequest& WithVolumeARN(const char* value) { SetVolumeARN(value); return *this;}
94 
95 
101  inline const Aws::String& GetSnapshotDescription() const{ return m_snapshotDescription; }
102 
108  inline bool SnapshotDescriptionHasBeenSet() const { return m_snapshotDescriptionHasBeenSet; }
109 
115  inline void SetSnapshotDescription(const Aws::String& value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription = value; }
116 
122  inline void SetSnapshotDescription(Aws::String&& value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription = std::move(value); }
123 
129  inline void SetSnapshotDescription(const char* value) { m_snapshotDescriptionHasBeenSet = true; m_snapshotDescription.assign(value); }
130 
136  inline CreateSnapshotFromVolumeRecoveryPointRequest& WithSnapshotDescription(const Aws::String& value) { SetSnapshotDescription(value); return *this;}
137 
143  inline CreateSnapshotFromVolumeRecoveryPointRequest& WithSnapshotDescription(Aws::String&& value) { SetSnapshotDescription(std::move(value)); return *this;}
144 
150  inline CreateSnapshotFromVolumeRecoveryPointRequest& WithSnapshotDescription(const char* value) { SetSnapshotDescription(value); return *this;}
151 
152 
160  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
161 
169  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
170 
178  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
179 
187  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
188 
196  inline CreateSnapshotFromVolumeRecoveryPointRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
197 
205  inline CreateSnapshotFromVolumeRecoveryPointRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
206 
214  inline CreateSnapshotFromVolumeRecoveryPointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
215 
223  inline CreateSnapshotFromVolumeRecoveryPointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
224 
225  private:
226 
227  Aws::String m_volumeARN;
228  bool m_volumeARNHasBeenSet;
229 
230  Aws::String m_snapshotDescription;
231  bool m_snapshotDescriptionHasBeenSet;
232 
233  Aws::Vector<Tag> m_tags;
234  bool m_tagsHasBeenSet;
235  };
236 
237 } // namespace Model
238 } // namespace StorageGateway
239 } // namespace Aws
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::SetSnapshotDescription
void SetSnapshotDescription(Aws::String &&value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:122
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::StorageGateway::Model::Tag
Definition: Tag.h:34
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::WithTags
CreateSnapshotFromVolumeRecoveryPointRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:205
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:24
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::SetVolumeARN
void SetVolumeARN(const char *value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:72
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:32
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::SetVolumeARN
void SetVolumeARN(const Aws::String &value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:58
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::WithSnapshotDescription
CreateSnapshotFromVolumeRecoveryPointRequest & WithSnapshotDescription(const char *value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:150
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::GetVolumeARN
const Aws::String & GetVolumeARN() const
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:44
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::SnapshotDescriptionHasBeenSet
bool SnapshotDescriptionHasBeenSet() const
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:108
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::WithTags
CreateSnapshotFromVolumeRecoveryPointRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:196
AWSVector.h
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::AddTags
CreateSnapshotFromVolumeRecoveryPointRequest & AddTags(Tag &&value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:223
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::AddTags
CreateSnapshotFromVolumeRecoveryPointRequest & AddTags(const Tag &value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:214
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:160
Aws::StorageGateway::StorageGatewayRequest
Definition: StorageGatewayRequest.h:17
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::SetSnapshotDescription
void SetSnapshotDescription(const char *value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:129
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::GetSnapshotDescription
const Aws::String & GetSnapshotDescription() const
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:101
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::WithVolumeARN
CreateSnapshotFromVolumeRecoveryPointRequest & WithVolumeARN(Aws::String &&value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:86
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::VolumeARNHasBeenSet
bool VolumeARNHasBeenSet() const
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:51
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:187
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::SetVolumeARN
void SetVolumeARN(Aws::String &&value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:65
AWSString.h
AWS_STORAGEGATEWAY_API
#define AWS_STORAGEGATEWAY_API
Definition: StorageGateway_EXPORTS.h:28
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::CreateSnapshotFromVolumeRecoveryPointRequest
CreateSnapshotFromVolumeRecoveryPointRequest()
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::WithVolumeARN
CreateSnapshotFromVolumeRecoveryPointRequest & WithVolumeARN(const Aws::String &value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:79
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::WithSnapshotDescription
CreateSnapshotFromVolumeRecoveryPointRequest & WithSnapshotDescription(const Aws::String &value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:136
StorageGatewayRequest.h
Aws
Definition: AccessManagementClient.h:15
Tag.h
StorageGateway_EXPORTS.h
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:169
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::WithSnapshotDescription
CreateSnapshotFromVolumeRecoveryPointRequest & WithSnapshotDescription(Aws::String &&value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:143
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::WithVolumeARN
CreateSnapshotFromVolumeRecoveryPointRequest & WithVolumeARN(const char *value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:93
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:178
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::StorageGateway::Model::CreateSnapshotFromVolumeRecoveryPointRequest::SetSnapshotDescription
void SetSnapshotDescription(const Aws::String &value)
Definition: CreateSnapshotFromVolumeRecoveryPointRequest.h:115