AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateSegmentDefinitionRequest.h
1
6#pragma once
7#include <aws/customer-profiles/CustomerProfiles_EXPORTS.h>
8#include <aws/customer-profiles/CustomerProfilesRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/customer-profiles/model/SegmentGroup.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace CustomerProfiles
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateSegmentDefinition"; }
33
34 AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetDomainName() const { return m_domainName; }
42 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
43 template<typename DomainNameT = Aws::String>
44 void SetDomainName(DomainNameT&& value) { m_domainNameHasBeenSet = true; m_domainName = std::forward<DomainNameT>(value); }
45 template<typename DomainNameT = Aws::String>
46 CreateSegmentDefinitionRequest& WithDomainName(DomainNameT&& value) { SetDomainName(std::forward<DomainNameT>(value)); return *this;}
48
50
53 inline const Aws::String& GetSegmentDefinitionName() const { return m_segmentDefinitionName; }
54 inline bool SegmentDefinitionNameHasBeenSet() const { return m_segmentDefinitionNameHasBeenSet; }
55 template<typename SegmentDefinitionNameT = Aws::String>
56 void SetSegmentDefinitionName(SegmentDefinitionNameT&& value) { m_segmentDefinitionNameHasBeenSet = true; m_segmentDefinitionName = std::forward<SegmentDefinitionNameT>(value); }
57 template<typename SegmentDefinitionNameT = Aws::String>
58 CreateSegmentDefinitionRequest& WithSegmentDefinitionName(SegmentDefinitionNameT&& value) { SetSegmentDefinitionName(std::forward<SegmentDefinitionNameT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDisplayName() const { return m_displayName; }
66 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
67 template<typename DisplayNameT = Aws::String>
68 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
69 template<typename DisplayNameT = Aws::String>
70 CreateSegmentDefinitionRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 CreateSegmentDefinitionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
90 inline const SegmentGroup& GetSegmentGroups() const { return m_segmentGroups; }
91 inline bool SegmentGroupsHasBeenSet() const { return m_segmentGroupsHasBeenSet; }
92 template<typename SegmentGroupsT = SegmentGroup>
93 void SetSegmentGroups(SegmentGroupsT&& value) { m_segmentGroupsHasBeenSet = true; m_segmentGroups = std::forward<SegmentGroupsT>(value); }
94 template<typename SegmentGroupsT = SegmentGroup>
95 CreateSegmentDefinitionRequest& WithSegmentGroups(SegmentGroupsT&& value) { SetSegmentGroups(std::forward<SegmentGroupsT>(value)); return *this;}
97
99
102 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
105 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
106 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
107 CreateSegmentDefinitionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
108 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
109 CreateSegmentDefinitionRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
110 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
111 }
113 private:
114
115 Aws::String m_domainName;
116 bool m_domainNameHasBeenSet = false;
117
118 Aws::String m_segmentDefinitionName;
119 bool m_segmentDefinitionNameHasBeenSet = false;
120
121 Aws::String m_displayName;
122 bool m_displayNameHasBeenSet = false;
123
124 Aws::String m_description;
125 bool m_descriptionHasBeenSet = false;
126
127 SegmentGroup m_segmentGroups;
128 bool m_segmentGroupsHasBeenSet = false;
129
131 bool m_tagsHasBeenSet = false;
132 };
133
134} // namespace Model
135} // namespace CustomerProfiles
136} // namespace Aws
CreateSegmentDefinitionRequest & WithDomainName(DomainNameT &&value)
CreateSegmentDefinitionRequest & WithDescription(DescriptionT &&value)
CreateSegmentDefinitionRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_CUSTOMERPROFILES_API Aws::String SerializePayload() const override
CreateSegmentDefinitionRequest & WithSegmentGroups(SegmentGroupsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateSegmentDefinitionRequest & WithSegmentDefinitionName(SegmentDefinitionNameT &&value)
CreateSegmentDefinitionRequest & WithDisplayName(DisplayNameT &&value)
AWS_CUSTOMERPROFILES_API CreateSegmentDefinitionRequest()=default
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