AWS SDK for C++

AWS SDK for C++ Version 1.11.812

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
59 inline DomainVerificationMethod GetVerificationMethod() const { return m_verificationMethod; }
60 inline bool VerificationMethodHasBeenSet() const { return m_verificationMethodHasBeenSet; }
62 m_verificationMethodHasBeenSet = true;
63 m_verificationMethod = value;
64 }
67 return *this;
68 }
70
72
75 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
76 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
77 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
78 void SetTags(TagsT&& value) {
79 m_tagsHasBeenSet = true;
80 m_tags = std::forward<TagsT>(value);
81 }
82 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 SetTags(std::forward<TagsT>(value));
85 return *this;
86 }
87 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
88 CreateTargetDomainRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
89 m_tagsHasBeenSet = true;
90 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_targetDomainName;
96
98
100 bool m_targetDomainNameHasBeenSet = false;
101 bool m_verificationMethodHasBeenSet = false;
102 bool m_tagsHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace SecurityAgent
107} // 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