AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateSubdomainRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/LightsailRequest.h>
10#include <aws/lightsail/Lightsail_EXPORTS.h>
11#include <aws/lightsail/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Lightsail {
17namespace Model {
18
22 public:
23 AWS_LIGHTSAIL_API CreateSubdomainRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateSubdomain"; }
30
31 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
32
34
36
48 inline const Aws::String& GetSubdomainName() const { return m_subdomainName; }
49 inline bool SubdomainNameHasBeenSet() const { return m_subdomainNameHasBeenSet; }
50 template <typename SubdomainNameT = Aws::String>
51 void SetSubdomainName(SubdomainNameT&& value) {
52 m_subdomainNameHasBeenSet = true;
53 m_subdomainName = std::forward<SubdomainNameT>(value);
54 }
55 template <typename SubdomainNameT = Aws::String>
56 CreateSubdomainRequest& WithSubdomainName(SubdomainNameT&& value) {
57 SetSubdomainName(std::forward<SubdomainNameT>(value));
58 return *this;
59 }
61
63
68 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
69 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
70 template <typename TagsT = Aws::Vector<Tag>>
71 void SetTags(TagsT&& value) {
72 m_tagsHasBeenSet = true;
73 m_tags = std::forward<TagsT>(value);
74 }
75 template <typename TagsT = Aws::Vector<Tag>>
77 SetTags(std::forward<TagsT>(value));
78 return *this;
79 }
80 template <typename TagsT = Tag>
82 m_tagsHasBeenSet = true;
83 m_tags.emplace_back(std::forward<TagsT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_subdomainName;
89
90 Aws::Vector<Tag> m_tags;
91 bool m_subdomainNameHasBeenSet = false;
92 bool m_tagsHasBeenSet = false;
93};
94
95} // namespace Model
96} // namespace Lightsail
97} // namespace Aws
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateSubdomainRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LIGHTSAIL_API CreateSubdomainRequest()=default
CreateSubdomainRequest & AddTags(TagsT &&value)
CreateSubdomainRequest & WithSubdomainName(SubdomainNameT &&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