AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
CreateExperimentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/Tag.h>
12
13#include <utility>
14
15namespace Aws {
16namespace SageMaker {
17namespace Model {
18
22 public:
23 AWS_SAGEMAKER_API CreateExperimentRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateExperiment"; }
30
31 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
32
34
36
40 inline const Aws::String& GetExperimentName() const { return m_experimentName; }
41 inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
42 template <typename ExperimentNameT = Aws::String>
43 void SetExperimentName(ExperimentNameT&& value) {
44 m_experimentNameHasBeenSet = true;
45 m_experimentName = std::forward<ExperimentNameT>(value);
46 }
47 template <typename ExperimentNameT = Aws::String>
48 CreateExperimentRequest& WithExperimentName(ExperimentNameT&& value) {
49 SetExperimentName(std::forward<ExperimentNameT>(value));
50 return *this;
51 }
53
55
60 inline const Aws::String& GetDisplayName() const { return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 template <typename DisplayNameT = Aws::String>
63 void SetDisplayName(DisplayNameT&& value) {
64 m_displayNameHasBeenSet = true;
65 m_displayName = std::forward<DisplayNameT>(value);
66 }
67 template <typename DisplayNameT = Aws::String>
69 SetDisplayName(std::forward<DisplayNameT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDescription() const { return m_description; }
79 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
80 template <typename DescriptionT = Aws::String>
81 void SetDescription(DescriptionT&& value) {
82 m_descriptionHasBeenSet = true;
83 m_description = std::forward<DescriptionT>(value);
84 }
85 template <typename DescriptionT = Aws::String>
87 SetDescription(std::forward<DescriptionT>(value));
88 return *this;
89 }
91
93
98 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
99 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
100 template <typename TagsT = Aws::Vector<Tag>>
101 void SetTags(TagsT&& value) {
102 m_tagsHasBeenSet = true;
103 m_tags = std::forward<TagsT>(value);
104 }
105 template <typename TagsT = Aws::Vector<Tag>>
107 SetTags(std::forward<TagsT>(value));
108 return *this;
109 }
110 template <typename TagsT = Tag>
112 m_tagsHasBeenSet = true;
113 m_tags.emplace_back(std::forward<TagsT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_experimentName;
119
120 Aws::String m_displayName;
121
122 Aws::String m_description;
123
124 Aws::Vector<Tag> m_tags;
125 bool m_experimentNameHasBeenSet = false;
126 bool m_displayNameHasBeenSet = false;
127 bool m_descriptionHasBeenSet = false;
128 bool m_tagsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace SageMaker
133} // namespace Aws
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateExperimentRequest & WithDisplayName(DisplayNameT &&value)
CreateExperimentRequest & WithExperimentName(ExperimentNameT &&value)
AWS_SAGEMAKER_API CreateExperimentRequest()=default
virtual const char * GetServiceRequestName() const override
CreateExperimentRequest & WithDescription(DescriptionT &&value)
CreateExperimentRequest & AddTags(TagsT &&value)
CreateExperimentRequest & WithTags(TagsT &&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