AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateSegmentDefinitionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace CustomerProfiles {
25namespace Model {
27 public:
28 AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionResult() = default;
31
33
36 inline const Aws::String& GetSegmentDefinitionName() const { return m_segmentDefinitionName; }
37 template <typename SegmentDefinitionNameT = Aws::String>
38 void SetSegmentDefinitionName(SegmentDefinitionNameT&& value) {
39 m_segmentDefinitionNameHasBeenSet = true;
40 m_segmentDefinitionName = std::forward<SegmentDefinitionNameT>(value);
41 }
42 template <typename SegmentDefinitionNameT = Aws::String>
44 SetSegmentDefinitionName(std::forward<SegmentDefinitionNameT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetDisplayName() const { return m_displayName; }
54 template <typename DisplayNameT = Aws::String>
55 void SetDisplayName(DisplayNameT&& value) {
56 m_displayNameHasBeenSet = true;
57 m_displayName = std::forward<DisplayNameT>(value);
58 }
59 template <typename DisplayNameT = Aws::String>
61 SetDisplayName(std::forward<DisplayNameT>(value));
62 return *this;
63 }
65
67
70 inline const Aws::String& GetDescription() const { return m_description; }
71 template <typename DescriptionT = Aws::String>
72 void SetDescription(DescriptionT&& value) {
73 m_descriptionHasBeenSet = true;
74 m_description = std::forward<DescriptionT>(value);
75 }
76 template <typename DescriptionT = Aws::String>
78 SetDescription(std::forward<DescriptionT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
88 template <typename CreatedAtT = Aws::Utils::DateTime>
89 void SetCreatedAt(CreatedAtT&& value) {
90 m_createdAtHasBeenSet = true;
91 m_createdAt = std::forward<CreatedAtT>(value);
92 }
93 template <typename CreatedAtT = Aws::Utils::DateTime>
95 SetCreatedAt(std::forward<CreatedAtT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetSegmentDefinitionArn() const { return m_segmentDefinitionArn; }
105 template <typename SegmentDefinitionArnT = Aws::String>
106 void SetSegmentDefinitionArn(SegmentDefinitionArnT&& value) {
107 m_segmentDefinitionArnHasBeenSet = true;
108 m_segmentDefinitionArn = std::forward<SegmentDefinitionArnT>(value);
109 }
110 template <typename SegmentDefinitionArnT = Aws::String>
112 SetSegmentDefinitionArn(std::forward<SegmentDefinitionArnT>(value));
113 return *this;
114 }
116
118
121 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
122 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
123 void SetTags(TagsT&& value) {
124 m_tagsHasBeenSet = true;
125 m_tags = std::forward<TagsT>(value);
126 }
127 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
129 SetTags(std::forward<TagsT>(value));
130 return *this;
131 }
132 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
133 CreateSegmentDefinitionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
134 m_tagsHasBeenSet = true;
135 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
136 return *this;
137 }
139
141
142 inline const Aws::String& GetRequestId() const { return m_requestId; }
143 template <typename RequestIdT = Aws::String>
144 void SetRequestId(RequestIdT&& value) {
145 m_requestIdHasBeenSet = true;
146 m_requestId = std::forward<RequestIdT>(value);
147 }
148 template <typename RequestIdT = Aws::String>
150 SetRequestId(std::forward<RequestIdT>(value));
151 return *this;
152 }
154 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
155
156 private:
157 Aws::String m_segmentDefinitionName;
158
159 Aws::String m_displayName;
160
161 Aws::String m_description;
162
163 Aws::Utils::DateTime m_createdAt{};
164
165 Aws::String m_segmentDefinitionArn;
166
168
169 Aws::String m_requestId;
170 Aws::Http::HttpResponseCode m_HttpResponseCode;
171 bool m_segmentDefinitionNameHasBeenSet = false;
172 bool m_displayNameHasBeenSet = false;
173 bool m_descriptionHasBeenSet = false;
174 bool m_createdAtHasBeenSet = false;
175 bool m_segmentDefinitionArnHasBeenSet = false;
176 bool m_tagsHasBeenSet = false;
177 bool m_requestIdHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace CustomerProfiles
182} // namespace Aws
AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionResult()=default
CreateSegmentDefinitionResult & WithSegmentDefinitionArn(SegmentDefinitionArnT &&value)
CreateSegmentDefinitionResult & WithDisplayName(DisplayNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSegmentDefinitionResult & WithRequestId(RequestIdT &&value)
CreateSegmentDefinitionResult & WithDescription(DescriptionT &&value)
AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateSegmentDefinitionResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateSegmentDefinitionResult & WithCreatedAt(CreatedAtT &&value)
CreateSegmentDefinitionResult & WithSegmentDefinitionName(SegmentDefinitionNameT &&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
Aws::Utils::Json::JsonValue JsonValue