AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
CreateTargetDomainRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/securityagent/SecurityAgentRequest.h>
10#include <aws/securityagent/SecurityAgent_EXPORTS.h>
11#include <aws/securityagent/model/DomainVerificationMethod.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SecurityAgent {
17namespace Model {
18
25 public:
26 AWS_SECURITYAGENT_API CreateTargetDomainRequest() = default;
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 "CreateTargetDomain"; }
33
34 AWS_SECURITYAGENT_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetTargetDomainName() const { return m_targetDomainName; }
41 inline bool TargetDomainNameHasBeenSet() const { return m_targetDomainNameHasBeenSet; }
42 template <typename TargetDomainNameT = Aws::String>
43 void SetTargetDomainName(TargetDomainNameT&& value) {
44 m_targetDomainNameHasBeenSet = true;
45 m_targetDomainName = std::forward<TargetDomainNameT>(value);
46 }
47 template <typename TargetDomainNameT = Aws::String>
48 CreateTargetDomainRequest& WithTargetDomainName(TargetDomainNameT&& value) {
49 SetTargetDomainName(std::forward<TargetDomainNameT>(value));
50 return *this;
51 }
53
55
58 inline DomainVerificationMethod GetVerificationMethod() const { return m_verificationMethod; }
59 inline bool VerificationMethodHasBeenSet() const { return m_verificationMethodHasBeenSet; }
61 m_verificationMethodHasBeenSet = true;
62 m_verificationMethod = value;
63 }
66 return *this;
67 }
69
71
74 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
75 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
76 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
77 void SetTags(TagsT&& value) {
78 m_tagsHasBeenSet = true;
79 m_tags = std::forward<TagsT>(value);
80 }
81 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
83 SetTags(std::forward<TagsT>(value));
84 return *this;
85 }
86 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
87 CreateTargetDomainRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
88 m_tagsHasBeenSet = true;
89 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_targetDomainName;
95
97
99 bool m_targetDomainNameHasBeenSet = false;
100 bool m_verificationMethodHasBeenSet = false;
101 bool m_tagsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace SecurityAgent
106} // namespace Aws
CreateTargetDomainRequest & WithTags(TagsT &&value)
CreateTargetDomainRequest & WithVerificationMethod(DomainVerificationMethod value)
CreateTargetDomainRequest & WithTargetDomainName(TargetDomainNameT &&value)
AWS_SECURITYAGENT_API CreateTargetDomainRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_SECURITYAGENT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
CreateTargetDomainRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String