AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateEventTrackerRequest.h
1
6#pragma once
7#include <aws/personalize/Personalize_EXPORTS.h>
8#include <aws/personalize/PersonalizeRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/personalize/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Personalize
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_PERSONALIZE_API CreateEventTrackerRequest() = 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 "CreateEventTracker"; }
33
34 AWS_PERSONALIZE_API Aws::String SerializePayload() const override;
35
36 AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateEventTrackerRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
56 inline const Aws::String& GetDatasetGroupArn() const { return m_datasetGroupArn; }
57 inline bool DatasetGroupArnHasBeenSet() const { return m_datasetGroupArnHasBeenSet; }
58 template<typename DatasetGroupArnT = Aws::String>
59 void SetDatasetGroupArn(DatasetGroupArnT&& value) { m_datasetGroupArnHasBeenSet = true; m_datasetGroupArn = std::forward<DatasetGroupArnT>(value); }
60 template<typename DatasetGroupArnT = Aws::String>
61 CreateEventTrackerRequest& WithDatasetGroupArn(DatasetGroupArnT&& value) { SetDatasetGroupArn(std::forward<DatasetGroupArnT>(value)); return *this;}
63
65
70 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
71 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
72 template<typename TagsT = Aws::Vector<Tag>>
73 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
74 template<typename TagsT = Aws::Vector<Tag>>
75 CreateEventTrackerRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
76 template<typename TagsT = Tag>
77 CreateEventTrackerRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
79 private:
80
81 Aws::String m_name;
82 bool m_nameHasBeenSet = false;
83
84 Aws::String m_datasetGroupArn;
85 bool m_datasetGroupArnHasBeenSet = false;
86
87 Aws::Vector<Tag> m_tags;
88 bool m_tagsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace Personalize
93} // namespace Aws
CreateEventTrackerRequest & WithDatasetGroupArn(DatasetGroupArnT &&value)
AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
virtual const char * GetServiceRequestName() const override
AWS_PERSONALIZE_API Aws::String SerializePayload() const override
CreateEventTrackerRequest & WithTags(TagsT &&value)
CreateEventTrackerRequest & AddTags(TagsT &&value)
AWS_PERSONALIZE_API CreateEventTrackerRequest()=default
CreateEventTrackerRequest & WithName(NameT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector