AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DiskNameT = Aws::String>
47 void SetDiskName(DiskNameT&& value) { m_diskNameHasBeenSet = true; m_diskName = std::forward<DiskNameT>(value); }
48 template<typename DiskNameT = Aws::String>
49 CreateDiskRequest& WithDiskName(DiskNameT&& value) { SetDiskName(std::forward<DiskNameT>(value)); return *this;}
51
53
60 inline const Aws::String& GetAvailabilityZone() const { return m_availabilityZone; }
61 inline bool AvailabilityZoneHasBeenSet() const { return m_availabilityZoneHasBeenSet; }
62 template<typename AvailabilityZoneT = Aws::String>
63 void SetAvailabilityZone(AvailabilityZoneT&& value) { m_availabilityZoneHasBeenSet = true; m_availabilityZone = std::forward<AvailabilityZoneT>(value); }
64 template<typename AvailabilityZoneT = Aws::String>
65 CreateDiskRequest& WithAvailabilityZone(AvailabilityZoneT&& value) { SetAvailabilityZone(std::forward<AvailabilityZoneT>(value)); return *this;}
67
69
72 inline int GetSizeInGb() const { return m_sizeInGb; }
73 inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; }
74 inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; }
75 inline CreateDiskRequest& WithSizeInGb(int value) { SetSizeInGb(value); return *this;}
77
79
84 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
85 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
86 template<typename TagsT = Aws::Vector<Tag>>
87 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
88 template<typename TagsT = Aws::Vector<Tag>>
89 CreateDiskRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
90 template<typename TagsT = Tag>
91 CreateDiskRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
93
95
99 inline const Aws::Vector<AddOnRequest>& GetAddOns() const { return m_addOns; }
100 inline bool AddOnsHasBeenSet() const { return m_addOnsHasBeenSet; }
101 template<typename AddOnsT = Aws::Vector<AddOnRequest>>
102 void SetAddOns(AddOnsT&& value) { m_addOnsHasBeenSet = true; m_addOns = std::forward<AddOnsT>(value); }
103 template<typename AddOnsT = Aws::Vector<AddOnRequest>>
104 CreateDiskRequest& WithAddOns(AddOnsT&& value) { SetAddOns(std::forward<AddOnsT>(value)); return *this;}
105 template<typename AddOnsT = AddOnRequest>
106 CreateDiskRequest& AddAddOns(AddOnsT&& value) { m_addOnsHasBeenSet = true; m_addOns.emplace_back(std::forward<AddOnsT>(value)); return *this; }
108 private:
109
110 Aws::String m_diskName;
111 bool m_diskNameHasBeenSet = false;
112
113 Aws::String m_availabilityZone;
114 bool m_availabilityZoneHasBeenSet = false;
115
116 int m_sizeInGb{0};
117 bool m_sizeInGbHasBeenSet = false;
118
119 Aws::Vector<Tag> m_tags;
120 bool m_tagsHasBeenSet = false;
121
123 bool m_addOnsHasBeenSet = false;
124 };
125
126} // namespace Model
127} // namespace Lightsail
128} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
const Aws::String & GetAvailabilityZone() const
virtual const char * GetServiceRequestName() const override
void SetAvailabilityZone(AvailabilityZoneT &&value)
CreateDiskRequest & AddTags(TagsT &&value)
CreateDiskRequest & WithDiskName(DiskNameT &&value)
AWS_LIGHTSAIL_API CreateDiskRequest()=default
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateDiskRequest & WithAvailabilityZone(AvailabilityZoneT &&value)
const Aws::String & GetDiskName() const
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDiskRequest & WithSizeInGb(int value)
const Aws::Vector< AddOnRequest > & GetAddOns() const
CreateDiskRequest & WithAddOns(AddOnsT &&value)
CreateDiskRequest & WithTags(TagsT &&value)
CreateDiskRequest & AddAddOns(AddOnsT &&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