AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
CreateSegmentDefinitionResult.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CustomerProfiles
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionResult() = default;
35
36
38
41 inline const Aws::String& GetSegmentDefinitionName() const { return m_segmentDefinitionName; }
42 template<typename SegmentDefinitionNameT = Aws::String>
43 void SetSegmentDefinitionName(SegmentDefinitionNameT&& value) { m_segmentDefinitionNameHasBeenSet = true; m_segmentDefinitionName = std::forward<SegmentDefinitionNameT>(value); }
44 template<typename SegmentDefinitionNameT = Aws::String>
45 CreateSegmentDefinitionResult& WithSegmentDefinitionName(SegmentDefinitionNameT&& value) { SetSegmentDefinitionName(std::forward<SegmentDefinitionNameT>(value)); return *this;}
47
49
52 inline const Aws::String& GetDisplayName() const { return m_displayName; }
53 template<typename DisplayNameT = Aws::String>
54 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
55 template<typename DisplayNameT = Aws::String>
56 CreateSegmentDefinitionResult& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
58
60
63 inline const Aws::String& GetDescription() const { return m_description; }
64 template<typename DescriptionT = Aws::String>
65 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
66 template<typename DescriptionT = Aws::String>
67 CreateSegmentDefinitionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
69
71
74 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
75 template<typename CreatedAtT = Aws::Utils::DateTime>
76 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
77 template<typename CreatedAtT = Aws::Utils::DateTime>
78 CreateSegmentDefinitionResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
80
82
85 inline const Aws::String& GetSegmentDefinitionArn() const { return m_segmentDefinitionArn; }
86 template<typename SegmentDefinitionArnT = Aws::String>
87 void SetSegmentDefinitionArn(SegmentDefinitionArnT&& value) { m_segmentDefinitionArnHasBeenSet = true; m_segmentDefinitionArn = std::forward<SegmentDefinitionArnT>(value); }
88 template<typename SegmentDefinitionArnT = Aws::String>
89 CreateSegmentDefinitionResult& WithSegmentDefinitionArn(SegmentDefinitionArnT&& value) { SetSegmentDefinitionArn(std::forward<SegmentDefinitionArnT>(value)); return *this;}
91
93
96 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
97 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
99 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
100 CreateSegmentDefinitionResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
101 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
102 CreateSegmentDefinitionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
103 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
104 }
106
108
109 inline const Aws::String& GetRequestId() const { return m_requestId; }
110 template<typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
112 template<typename RequestIdT = Aws::String>
113 CreateSegmentDefinitionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
115 private:
116
117 Aws::String m_segmentDefinitionName;
118 bool m_segmentDefinitionNameHasBeenSet = false;
119
120 Aws::String m_displayName;
121 bool m_displayNameHasBeenSet = false;
122
123 Aws::String m_description;
124 bool m_descriptionHasBeenSet = false;
125
126 Aws::Utils::DateTime m_createdAt{};
127 bool m_createdAtHasBeenSet = false;
128
129 Aws::String m_segmentDefinitionArn;
130 bool m_segmentDefinitionArnHasBeenSet = false;
131
133 bool m_tagsHasBeenSet = false;
134
135 Aws::String m_requestId;
136 bool m_requestIdHasBeenSet = false;
137 };
138
139} // namespace Model
140} // namespace CustomerProfiles
141} // 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