AWS SDK for C++  1.9.16
AWS SDK for C++
CreateInstanceSnapshotRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Lightsail
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 "CreateInstanceSnapshot"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
42  inline const Aws::String& GetInstanceSnapshotName() const{ return m_instanceSnapshotName; }
43 
47  inline bool InstanceSnapshotNameHasBeenSet() const { return m_instanceSnapshotNameHasBeenSet; }
48 
52  inline void SetInstanceSnapshotName(const Aws::String& value) { m_instanceSnapshotNameHasBeenSet = true; m_instanceSnapshotName = value; }
53 
57  inline void SetInstanceSnapshotName(Aws::String&& value) { m_instanceSnapshotNameHasBeenSet = true; m_instanceSnapshotName = std::move(value); }
58 
62  inline void SetInstanceSnapshotName(const char* value) { m_instanceSnapshotNameHasBeenSet = true; m_instanceSnapshotName.assign(value); }
63 
67  inline CreateInstanceSnapshotRequest& WithInstanceSnapshotName(const Aws::String& value) { SetInstanceSnapshotName(value); return *this;}
68 
72  inline CreateInstanceSnapshotRequest& WithInstanceSnapshotName(Aws::String&& value) { SetInstanceSnapshotName(std::move(value)); return *this;}
73 
77  inline CreateInstanceSnapshotRequest& WithInstanceSnapshotName(const char* value) { SetInstanceSnapshotName(value); return *this;}
78 
79 
83  inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
84 
88  inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
89 
93  inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
94 
98  inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
99 
103  inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
104 
108  inline CreateInstanceSnapshotRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
109 
113  inline CreateInstanceSnapshotRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
114 
118  inline CreateInstanceSnapshotRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
119 
120 
126  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
127 
133  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
134 
140  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
141 
147  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
148 
154  inline CreateInstanceSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
155 
161  inline CreateInstanceSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
162 
168  inline CreateInstanceSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
169 
175  inline CreateInstanceSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
176 
177  private:
178 
179  Aws::String m_instanceSnapshotName;
180  bool m_instanceSnapshotNameHasBeenSet;
181 
182  Aws::String m_instanceName;
183  bool m_instanceNameHasBeenSet;
184 
185  Aws::Vector<Tag> m_tags;
186  bool m_tagsHasBeenSet;
187  };
188 
189 } // namespace Model
190 } // namespace Lightsail
191 } // namespace Aws
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::WithInstanceName
CreateInstanceSnapshotRequest & WithInstanceName(const Aws::String &value)
Definition: CreateInstanceSnapshotRequest.h:108
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::CreateInstanceSnapshotRequest
CreateInstanceSnapshotRequest()
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::SetInstanceSnapshotName
void SetInstanceSnapshotName(Aws::String &&value)
Definition: CreateInstanceSnapshotRequest.h:57
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::WithInstanceSnapshotName
CreateInstanceSnapshotRequest & WithInstanceSnapshotName(Aws::String &&value)
Definition: CreateInstanceSnapshotRequest.h:72
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::WithTags
CreateInstanceSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateInstanceSnapshotRequest.h:161
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::AddTags
CreateInstanceSnapshotRequest & AddTags(const Tag &value)
Definition: CreateInstanceSnapshotRequest.h:168
AWSVector.h
LightsailRequest.h
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::SetInstanceName
void SetInstanceName(Aws::String &&value)
Definition: CreateInstanceSnapshotRequest.h:98
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::GetInstanceSnapshotName
const Aws::String & GetInstanceSnapshotName() const
Definition: CreateInstanceSnapshotRequest.h:42
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateInstanceSnapshotRequest.h:147
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::InstanceNameHasBeenSet
bool InstanceNameHasBeenSet() const
Definition: CreateInstanceSnapshotRequest.h:88
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::WithInstanceName
CreateInstanceSnapshotRequest & WithInstanceName(const char *value)
Definition: CreateInstanceSnapshotRequest.h:118
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateInstanceSnapshotRequest.h:32
Tag.h
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::SetInstanceName
void SetInstanceName(const Aws::String &value)
Definition: CreateInstanceSnapshotRequest.h:93
Aws::Lightsail::LightsailRequest
Definition: LightsailRequest.h:17
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::SetInstanceSnapshotName
void SetInstanceSnapshotName(const char *value)
Definition: CreateInstanceSnapshotRequest.h:62
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::WithTags
CreateInstanceSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateInstanceSnapshotRequest.h:154
Aws::Lightsail::Model::Tag
Definition: Tag.h:35
AWSString.h
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateInstanceSnapshotRequest.h:126
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateInstanceSnapshotRequest.h:133
Lightsail_EXPORTS.h
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::WithInstanceName
CreateInstanceSnapshotRequest & WithInstanceName(Aws::String &&value)
Definition: CreateInstanceSnapshotRequest.h:113
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::InstanceSnapshotNameHasBeenSet
bool InstanceSnapshotNameHasBeenSet() const
Definition: CreateInstanceSnapshotRequest.h:47
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::WithInstanceSnapshotName
CreateInstanceSnapshotRequest & WithInstanceSnapshotName(const char *value)
Definition: CreateInstanceSnapshotRequest.h:77
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::WithInstanceSnapshotName
CreateInstanceSnapshotRequest & WithInstanceSnapshotName(const Aws::String &value)
Definition: CreateInstanceSnapshotRequest.h:67
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateInstanceSnapshotRequest.h:140
Aws
Definition: AccessManagementClient.h:15
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::SetInstanceSnapshotName
void SetInstanceSnapshotName(const Aws::String &value)
Definition: CreateInstanceSnapshotRequest.h:52
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::SetInstanceName
void SetInstanceName(const char *value)
Definition: CreateInstanceSnapshotRequest.h:103
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::AddTags
CreateInstanceSnapshotRequest & AddTags(Tag &&value)
Definition: CreateInstanceSnapshotRequest.h:175
Aws::Lightsail::Model::CreateInstanceSnapshotRequest
Definition: CreateInstanceSnapshotRequest.h:24
AWS_LIGHTSAIL_API
#define AWS_LIGHTSAIL_API
Definition: Lightsail_EXPORTS.h:28
Aws::Lightsail::Model::CreateInstanceSnapshotRequest::GetInstanceName
const Aws::String & GetInstanceName() const
Definition: CreateInstanceSnapshotRequest.h:83