AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
CreateSegmentDefinitionResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CustomerProfiles {
24namespace Model {
26 public:
27 AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionResult() = default;
30
32
35 inline const Aws::String& GetSegmentDefinitionName() const { return m_segmentDefinitionName; }
36 template <typename SegmentDefinitionNameT = Aws::String>
37 void SetSegmentDefinitionName(SegmentDefinitionNameT&& value) {
38 m_segmentDefinitionNameHasBeenSet = true;
39 m_segmentDefinitionName = std::forward<SegmentDefinitionNameT>(value);
40 }
41 template <typename SegmentDefinitionNameT = Aws::String>
43 SetSegmentDefinitionName(std::forward<SegmentDefinitionNameT>(value));
44 return *this;
45 }
47
49
52 inline const Aws::String& GetDisplayName() const { return m_displayName; }
53 template <typename DisplayNameT = Aws::String>
54 void SetDisplayName(DisplayNameT&& value) {
55 m_displayNameHasBeenSet = true;
56 m_displayName = std::forward<DisplayNameT>(value);
57 }
58 template <typename DisplayNameT = Aws::String>
60 SetDisplayName(std::forward<DisplayNameT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetDescription() const { return m_description; }
70 template <typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) {
72 m_descriptionHasBeenSet = true;
73 m_description = std::forward<DescriptionT>(value);
74 }
75 template <typename DescriptionT = Aws::String>
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
87 template <typename CreatedAtT = Aws::Utils::DateTime>
88 void SetCreatedAt(CreatedAtT&& value) {
89 m_createdAtHasBeenSet = true;
90 m_createdAt = std::forward<CreatedAtT>(value);
91 }
92 template <typename CreatedAtT = Aws::Utils::DateTime>
94 SetCreatedAt(std::forward<CreatedAtT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::String& GetSegmentDefinitionArn() const { return m_segmentDefinitionArn; }
104 template <typename SegmentDefinitionArnT = Aws::String>
105 void SetSegmentDefinitionArn(SegmentDefinitionArnT&& value) {
106 m_segmentDefinitionArnHasBeenSet = true;
107 m_segmentDefinitionArn = std::forward<SegmentDefinitionArnT>(value);
108 }
109 template <typename SegmentDefinitionArnT = Aws::String>
111 SetSegmentDefinitionArn(std::forward<SegmentDefinitionArnT>(value));
112 return *this;
113 }
115
117
120 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
121 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
122 void SetTags(TagsT&& value) {
123 m_tagsHasBeenSet = true;
124 m_tags = std::forward<TagsT>(value);
125 }
126 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
128 SetTags(std::forward<TagsT>(value));
129 return *this;
130 }
131 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
132 CreateSegmentDefinitionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
133 m_tagsHasBeenSet = true;
134 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
135 return *this;
136 }
138
140
141 inline const Aws::String& GetRequestId() const { return m_requestId; }
142 template <typename RequestIdT = Aws::String>
143 void SetRequestId(RequestIdT&& value) {
144 m_requestIdHasBeenSet = true;
145 m_requestId = std::forward<RequestIdT>(value);
146 }
147 template <typename RequestIdT = Aws::String>
149 SetRequestId(std::forward<RequestIdT>(value));
150 return *this;
151 }
153 private:
154 Aws::String m_segmentDefinitionName;
155
156 Aws::String m_displayName;
157
158 Aws::String m_description;
159
160 Aws::Utils::DateTime m_createdAt{};
161
162 Aws::String m_segmentDefinitionArn;
163
165
166 Aws::String m_requestId;
167 bool m_segmentDefinitionNameHasBeenSet = false;
168 bool m_displayNameHasBeenSet = false;
169 bool m_descriptionHasBeenSet = false;
170 bool m_createdAtHasBeenSet = false;
171 bool m_segmentDefinitionArnHasBeenSet = false;
172 bool m_tagsHasBeenSet = false;
173 bool m_requestIdHasBeenSet = false;
174};
175
176} // namespace Model
177} // namespace CustomerProfiles
178} // 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