AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInstanceSnapshotRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lightsail/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Lightsail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LIGHTSAIL_API CreateInstanceSnapshotRequest();
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_LIGHTSAIL_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetInstanceSnapshotName() const{ return m_instanceSnapshotName; }
44 inline bool InstanceSnapshotNameHasBeenSet() const { return m_instanceSnapshotNameHasBeenSet; }
45 inline void SetInstanceSnapshotName(const Aws::String& value) { m_instanceSnapshotNameHasBeenSet = true; m_instanceSnapshotName = value; }
46 inline void SetInstanceSnapshotName(Aws::String&& value) { m_instanceSnapshotNameHasBeenSet = true; m_instanceSnapshotName = std::move(value); }
47 inline void SetInstanceSnapshotName(const char* value) { m_instanceSnapshotNameHasBeenSet = true; m_instanceSnapshotName.assign(value); }
50 inline CreateInstanceSnapshotRequest& WithInstanceSnapshotName(const char* value) { SetInstanceSnapshotName(value); return *this;}
52
54
57 inline const Aws::String& GetInstanceName() const{ return m_instanceName; }
58 inline bool InstanceNameHasBeenSet() const { return m_instanceNameHasBeenSet; }
59 inline void SetInstanceName(const Aws::String& value) { m_instanceNameHasBeenSet = true; m_instanceName = value; }
60 inline void SetInstanceName(Aws::String&& value) { m_instanceNameHasBeenSet = true; m_instanceName = std::move(value); }
61 inline void SetInstanceName(const char* value) { m_instanceNameHasBeenSet = true; m_instanceName.assign(value); }
62 inline CreateInstanceSnapshotRequest& WithInstanceName(const Aws::String& value) { SetInstanceName(value); return *this;}
63 inline CreateInstanceSnapshotRequest& WithInstanceName(Aws::String&& value) { SetInstanceName(std::move(value)); return *this;}
64 inline CreateInstanceSnapshotRequest& WithInstanceName(const char* value) { SetInstanceName(value); return *this;}
66
68
73 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
74 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
75 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
76 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
77 inline CreateInstanceSnapshotRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
78 inline CreateInstanceSnapshotRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
79 inline CreateInstanceSnapshotRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
80 inline CreateInstanceSnapshotRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
82 private:
83
84 Aws::String m_instanceSnapshotName;
85 bool m_instanceSnapshotNameHasBeenSet = false;
86
87 Aws::String m_instanceName;
88 bool m_instanceNameHasBeenSet = false;
89
90 Aws::Vector<Tag> m_tags;
91 bool m_tagsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace Lightsail
96} // namespace Aws
CreateInstanceSnapshotRequest & WithInstanceSnapshotName(Aws::String &&value)
CreateInstanceSnapshotRequest & WithInstanceSnapshotName(const Aws::String &value)
CreateInstanceSnapshotRequest & WithInstanceName(const char *value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInstanceSnapshotRequest & WithInstanceName(Aws::String &&value)
CreateInstanceSnapshotRequest & AddTags(const Tag &value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateInstanceSnapshotRequest & WithTags(Aws::Vector< Tag > &&value)
CreateInstanceSnapshotRequest & WithInstanceSnapshotName(const char *value)
CreateInstanceSnapshotRequest & WithTags(const Aws::Vector< Tag > &value)
CreateInstanceSnapshotRequest & WithInstanceName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector