AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateDomainRequest.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 CreateDomainRequest() = 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 "CreateDomain"; }
30
31 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
32
34
36
39 inline const Aws::String& GetDomainName() const { return m_domainName; }
40 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
41 template <typename DomainNameT = Aws::String>
42 void SetDomainName(DomainNameT&& value) {
43 m_domainNameHasBeenSet = true;
44 m_domainName = std::forward<DomainNameT>(value);
45 }
46 template <typename DomainNameT = Aws::String>
47 CreateDomainRequest& WithDomainName(DomainNameT&& value) {
48 SetDomainName(std::forward<DomainNameT>(value));
49 return *this;
50 }
52
54
59 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
60 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
61 template <typename TagsT = Aws::Vector<Tag>>
62 void SetTags(TagsT&& value) {
63 m_tagsHasBeenSet = true;
64 m_tags = std::forward<TagsT>(value);
65 }
66 template <typename TagsT = Aws::Vector<Tag>>
67 CreateDomainRequest& WithTags(TagsT&& value) {
68 SetTags(std::forward<TagsT>(value));
69 return *this;
70 }
71 template <typename TagsT = Tag>
72 CreateDomainRequest& AddTags(TagsT&& value) {
73 m_tagsHasBeenSet = true;
74 m_tags.emplace_back(std::forward<TagsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_domainName;
80
81 Aws::Vector<Tag> m_tags;
82 bool m_domainNameHasBeenSet = false;
83 bool m_tagsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace Lightsail
88} // namespace Aws
CreateDomainRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
CreateDomainRequest & AddTags(TagsT &&value)
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateDomainRequest & WithDomainName(DomainNameT &&value)
AWS_LIGHTSAIL_API CreateDomainRequest()=default
const Aws::Vector< Tag > & GetTags() const
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