AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
CreateEventStreamRequest.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/customer-profiles/CustomerProfilesRequest.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace CustomerProfiles {
16namespace Model {
17
21 public:
22 AWS_CUSTOMERPROFILES_API CreateEventStreamRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "CreateEventStream"; }
29
30 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetDomainName() const { return m_domainName; }
37 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
38 template <typename DomainNameT = Aws::String>
39 void SetDomainName(DomainNameT&& value) {
40 m_domainNameHasBeenSet = true;
41 m_domainName = std::forward<DomainNameT>(value);
42 }
43 template <typename DomainNameT = Aws::String>
45 SetDomainName(std::forward<DomainNameT>(value));
46 return *this;
47 }
49
51
55 inline const Aws::String& GetUri() const { return m_uri; }
56 inline bool UriHasBeenSet() const { return m_uriHasBeenSet; }
57 template <typename UriT = Aws::String>
58 void SetUri(UriT&& value) {
59 m_uriHasBeenSet = true;
60 m_uri = std::forward<UriT>(value);
61 }
62 template <typename UriT = Aws::String>
64 SetUri(std::forward<UriT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetEventStreamName() const { return m_eventStreamName; }
74 inline bool EventStreamNameHasBeenSet() const { return m_eventStreamNameHasBeenSet; }
75 template <typename EventStreamNameT = Aws::String>
76 void SetEventStreamName(EventStreamNameT&& value) {
77 m_eventStreamNameHasBeenSet = true;
78 m_eventStreamName = std::forward<EventStreamNameT>(value);
79 }
80 template <typename EventStreamNameT = Aws::String>
81 CreateEventStreamRequest& WithEventStreamName(EventStreamNameT&& value) {
82 SetEventStreamName(std::forward<EventStreamNameT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
92 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
93 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
94 void SetTags(TagsT&& value) {
95 m_tagsHasBeenSet = true;
96 m_tags = std::forward<TagsT>(value);
97 }
98 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 SetTags(std::forward<TagsT>(value));
101 return *this;
102 }
103 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
104 CreateEventStreamRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_domainName;
112
113 Aws::String m_uri;
114
115 Aws::String m_eventStreamName;
116
118 bool m_domainNameHasBeenSet = false;
119 bool m_uriHasBeenSet = false;
120 bool m_eventStreamNameHasBeenSet = false;
121 bool m_tagsHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace CustomerProfiles
126} // namespace Aws
CreateEventStreamRequest & WithDomainName(DomainNameT &&value)
CreateEventStreamRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
AWS_CUSTOMERPROFILES_API CreateEventStreamRequest()=default
CreateEventStreamRequest & WithEventStreamName(EventStreamNameT &&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