AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDiskRequest.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 <aws/lightsail/model/AddOnRequest.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Lightsail
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LIGHTSAIL_API CreateDiskRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateDisk"; }
34
35 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetDiskName() const{ return m_diskName; }
45 inline bool DiskNameHasBeenSet() const { return m_diskNameHasBeenSet; }
46 inline void SetDiskName(const Aws::String& value) { m_diskNameHasBeenSet = true; m_diskName = value; }
47 inline void SetDiskName(Aws::String&& value) { m_diskNameHasBeenSet = true; m_diskName = std::move(value); }
48 inline void SetDiskName(const char* value) { m_diskNameHasBeenSet = true; m_diskName.assign(value); }
49 inline CreateDiskRequest& WithDiskName(const Aws::String& value) { SetDiskName(value); return *this;}
50 inline CreateDiskRequest& WithDiskName(Aws::String&& value) { SetDiskName(std::move(value)); return *this;}
51 inline CreateDiskRequest& WithDiskName(const char* value) { SetDiskName(value); return *this;}
53
55
62 inline const Aws::String& GetAvailabilityZone() const{ return m_availabilityZone; }
63 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
64 inline void SetAvailabilityZone(const Aws::String& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = value; }
65 inline void SetAvailabilityZone(Aws::String&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::move(value); }
66 inline void SetAvailabilityZone(const char* value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone.assign(value); }
67 inline CreateDiskRequest& WithAvailabilityZone(const Aws::String& value) { SetAvailabilityZone(value); return *this;}
68 inline CreateDiskRequest& WithAvailabilityZone(Aws::String&& value) { SetAvailabilityZone(std::move(value)); return *this;}
69 inline CreateDiskRequest& WithAvailabilityZone(const char* value) { SetAvailabilityZone(value); return *this;}
71
73
76 inline int GetSizeInGb() const{ return m_sizeInGb; }
77 inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; }
78 inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; }
79 inline CreateDiskRequest& WithSizeInGb(int value) { SetSizeInGb(value); return *this;}
81
83
88 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
91 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
92 inline CreateDiskRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
93 inline CreateDiskRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
94 inline CreateDiskRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
95 inline CreateDiskRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
97
99
103 inline const Aws::Vector<AddOnRequest>& GetAddOns() const{ return m_addOns; }
104 inline bool AddOnsHasBeenSet() const { return m_addOnsHasBeenSet; }
105 inline void SetAddOns(const Aws::Vector<AddOnRequest>& value) { m_addOnsHasBeenSet = true; m_addOns = value; }
106 inline void SetAddOns(Aws::Vector<AddOnRequest>&& value) { m_addOnsHasBeenSet = true; m_addOns = std::move(value); }
107 inline CreateDiskRequest& WithAddOns(const Aws::Vector<AddOnRequest>& value) { SetAddOns(value); return *this;}
108 inline CreateDiskRequest& WithAddOns(Aws::Vector<AddOnRequest>&& value) { SetAddOns(std::move(value)); return *this;}
109 inline CreateDiskRequest& AddAddOns(const AddOnRequest& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(value); return *this; }
110 inline CreateDiskRequest& AddAddOns(AddOnRequest&& value) { m_addOnsHasBeenSet = true; m_addOns.push_back(std::move(value)); return *this; }
112 private:
113
114 Aws::String m_diskName;
115 bool m_diskNameHasBeenSet = false;
116
117 Aws::String m_availabilityZone;
118 bool m_availabilityZoneHasBeenSet = false;
119
120 int m_sizeInGb;
121 bool m_sizeInGbHasBeenSet = false;
122
123 Aws::Vector<Tag> m_tags;
124 bool m_tagsHasBeenSet = false;
125
127 bool m_addOnsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace Lightsail
132} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
void SetTags(const Aws::Vector< Tag > &value)
CreateDiskRequest & WithAvailabilityZone(const char *value)
const Aws::String & GetAvailabilityZone() const
CreateDiskRequest & WithDiskName(const char *value)
CreateDiskRequest & WithTags(Aws::Vector< Tag > &&value)
CreateDiskRequest & WithAvailabilityZone(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateDiskRequest & AddAddOns(const AddOnRequest &value)
void SetAddOns(const Aws::Vector< AddOnRequest > &value)
CreateDiskRequest & WithDiskName(Aws::String &&value)
CreateDiskRequest & WithAddOns(Aws::Vector< AddOnRequest > &&value)
CreateDiskRequest & WithAvailabilityZone(Aws::String &&value)
void SetAddOns(Aws::Vector< AddOnRequest > &&value)
void SetTags(Aws::Vector< Tag > &&value)
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
const Aws::String & GetDiskName() const
CreateDiskRequest & WithDiskName(const Aws::String &value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDiskRequest & AddTags(const Tag &value)
CreateDiskRequest & AddAddOns(AddOnRequest &&value)
void SetAvailabilityZone(const Aws::String &value)
CreateDiskRequest & WithSizeInGb(int value)
void SetDiskName(const Aws::String &value)
const Aws::Vector< AddOnRequest > & GetAddOns() const
CreateDiskRequest & AddTags(Tag &&value)
CreateDiskRequest & WithAddOns(const Aws::Vector< AddOnRequest > &value)
void SetAvailabilityZone(Aws::String &&value)
CreateDiskRequest & WithTags(const Aws::Vector< Tag > &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