AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
GetSegmentDefinitionResult.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/customer-profiles/model/SegmentGroup.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace CustomerProfiles
27{
28namespace Model
29{
31 {
32 public:
33 AWS_CUSTOMERPROFILES_API GetSegmentDefinitionResult() = default;
36
37
39
42 inline const Aws::String& GetSegmentDefinitionName() const { return m_segmentDefinitionName; }
43 template<typename SegmentDefinitionNameT = Aws::String>
44 void SetSegmentDefinitionName(SegmentDefinitionNameT&& value) { m_segmentDefinitionNameHasBeenSet = true; m_segmentDefinitionName = std::forward<SegmentDefinitionNameT>(value); }
45 template<typename SegmentDefinitionNameT = Aws::String>
46 GetSegmentDefinitionResult& WithSegmentDefinitionName(SegmentDefinitionNameT&& value) { SetSegmentDefinitionName(std::forward<SegmentDefinitionNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetDisplayName() const { return m_displayName; }
54 template<typename DisplayNameT = Aws::String>
55 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
56 template<typename DisplayNameT = Aws::String>
57 GetSegmentDefinitionResult& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
59
61
64 inline const Aws::String& GetDescription() const { return m_description; }
65 template<typename DescriptionT = Aws::String>
66 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
67 template<typename DescriptionT = Aws::String>
68 GetSegmentDefinitionResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
70
72
75 inline const SegmentGroup& GetSegmentGroups() const { return m_segmentGroups; }
76 template<typename SegmentGroupsT = SegmentGroup>
77 void SetSegmentGroups(SegmentGroupsT&& value) { m_segmentGroupsHasBeenSet = true; m_segmentGroups = std::forward<SegmentGroupsT>(value); }
78 template<typename SegmentGroupsT = SegmentGroup>
79 GetSegmentDefinitionResult& WithSegmentGroups(SegmentGroupsT&& value) { SetSegmentGroups(std::forward<SegmentGroupsT>(value)); return *this;}
81
83
86 inline const Aws::String& GetSegmentDefinitionArn() const { return m_segmentDefinitionArn; }
87 template<typename SegmentDefinitionArnT = Aws::String>
88 void SetSegmentDefinitionArn(SegmentDefinitionArnT&& value) { m_segmentDefinitionArnHasBeenSet = true; m_segmentDefinitionArn = std::forward<SegmentDefinitionArnT>(value); }
89 template<typename SegmentDefinitionArnT = Aws::String>
90 GetSegmentDefinitionResult& WithSegmentDefinitionArn(SegmentDefinitionArnT&& value) { SetSegmentDefinitionArn(std::forward<SegmentDefinitionArnT>(value)); return *this;}
92
94
97 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
98 template<typename CreatedAtT = Aws::Utils::DateTime>
99 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
100 template<typename CreatedAtT = Aws::Utils::DateTime>
101 GetSegmentDefinitionResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
103
105
108 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
109 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
111 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
112 GetSegmentDefinitionResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
113 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 GetSegmentDefinitionResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
115 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
116 }
118
120
121 inline const Aws::String& GetRequestId() const { return m_requestId; }
122 template<typename RequestIdT = Aws::String>
123 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
124 template<typename RequestIdT = Aws::String>
125 GetSegmentDefinitionResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
127 private:
128
129 Aws::String m_segmentDefinitionName;
130 bool m_segmentDefinitionNameHasBeenSet = false;
131
132 Aws::String m_displayName;
133 bool m_displayNameHasBeenSet = false;
134
135 Aws::String m_description;
136 bool m_descriptionHasBeenSet = false;
137
138 SegmentGroup m_segmentGroups;
139 bool m_segmentGroupsHasBeenSet = false;
140
141 Aws::String m_segmentDefinitionArn;
142 bool m_segmentDefinitionArnHasBeenSet = false;
143
144 Aws::Utils::DateTime m_createdAt{};
145 bool m_createdAtHasBeenSet = false;
146
148 bool m_tagsHasBeenSet = false;
149
150 Aws::String m_requestId;
151 bool m_requestIdHasBeenSet = false;
152 };
153
154} // namespace Model
155} // namespace CustomerProfiles
156} // namespace Aws
GetSegmentDefinitionResult & WithSegmentDefinitionName(SegmentDefinitionNameT &&value)
GetSegmentDefinitionResult & WithCreatedAt(CreatedAtT &&value)
AWS_CUSTOMERPROFILES_API GetSegmentDefinitionResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_CUSTOMERPROFILES_API GetSegmentDefinitionResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
GetSegmentDefinitionResult & WithSegmentGroups(SegmentGroupsT &&value)
AWS_CUSTOMERPROFILES_API GetSegmentDefinitionResult()=default
GetSegmentDefinitionResult & WithDescription(DescriptionT &&value)
GetSegmentDefinitionResult & WithSegmentDefinitionArn(SegmentDefinitionArnT &&value)
GetSegmentDefinitionResult & WithDisplayName(DisplayNameT &&value)
GetSegmentDefinitionResult & WithRequestId(RequestIdT &&value)
GetSegmentDefinitionResult & 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
Aws::Utils::Json::JsonValue JsonValue