AWS SDK for C++  1.9.102
AWS SDK for C++
CreateExperimentRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SageMaker
17 {
18 namespace Model
19 {
20 
24  {
25  public:
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 "CreateExperiment"; }
33 
34  Aws::String SerializePayload() const override;
35 
37 
38 
43  inline const Aws::String& GetExperimentName() const{ return m_experimentName; }
44 
49  inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
50 
55  inline void SetExperimentName(const Aws::String& value) { m_experimentNameHasBeenSet = true; m_experimentName = value; }
56 
61  inline void SetExperimentName(Aws::String&& value) { m_experimentNameHasBeenSet = true; m_experimentName = std::move(value); }
62 
67  inline void SetExperimentName(const char* value) { m_experimentNameHasBeenSet = true; m_experimentName.assign(value); }
68 
73  inline CreateExperimentRequest& WithExperimentName(const Aws::String& value) { SetExperimentName(value); return *this;}
74 
79  inline CreateExperimentRequest& WithExperimentName(Aws::String&& value) { SetExperimentName(std::move(value)); return *this;}
80 
85  inline CreateExperimentRequest& WithExperimentName(const char* value) { SetExperimentName(value); return *this;}
86 
87 
93  inline const Aws::String& GetDisplayName() const{ return m_displayName; }
94 
100  inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
101 
107  inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
108 
114  inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
115 
121  inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
122 
128  inline CreateExperimentRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
129 
135  inline CreateExperimentRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
136 
142  inline CreateExperimentRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
143 
144 
148  inline const Aws::String& GetDescription() const{ return m_description; }
149 
153  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
154 
158  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
159 
163  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
164 
168  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
169 
173  inline CreateExperimentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
174 
178  inline CreateExperimentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
179 
183  inline CreateExperimentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
184 
185 
190  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
191 
196  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
197 
202  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
203 
208  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
209 
214  inline CreateExperimentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
215 
220  inline CreateExperimentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
221 
226  inline CreateExperimentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
227 
232  inline CreateExperimentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
233 
234  private:
235 
236  Aws::String m_experimentName;
237  bool m_experimentNameHasBeenSet;
238 
239  Aws::String m_displayName;
240  bool m_displayNameHasBeenSet;
241 
242  Aws::String m_description;
243  bool m_descriptionHasBeenSet;
244 
245  Aws::Vector<Tag> m_tags;
246  bool m_tagsHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace SageMaker
251 } // namespace Aws
Aws::SageMaker::Model::Tag
Definition: Tag.h:44
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
SageMaker_EXPORTS.h
Aws::SageMaker::Model::CreateExperimentRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateExperimentRequest.h:190
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::SageMaker::Model::CreateExperimentRequest::WithDisplayName
CreateExperimentRequest & WithDisplayName(const Aws::String &value)
Definition: CreateExperimentRequest.h:128
Aws::SageMaker::Model::CreateExperimentRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateExperimentRequest.h:208
Aws::SageMaker::Model::CreateExperimentRequest::ExperimentNameHasBeenSet
bool ExperimentNameHasBeenSet() const
Definition: CreateExperimentRequest.h:49
Aws::SageMaker::Model::CreateExperimentRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateExperimentRequest.h:168
Aws::SageMaker::Model::CreateExperimentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::SageMaker::Model::CreateExperimentRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateExperimentRequest.h:202
Aws::SageMaker::Model::CreateExperimentRequest::SetDisplayName
void SetDisplayName(const char *value)
Definition: CreateExperimentRequest.h:121
Aws::SageMaker::Model::CreateExperimentRequest::GetDisplayName
const Aws::String & GetDisplayName() const
Definition: CreateExperimentRequest.h:93
Aws::SageMaker::Model::CreateExperimentRequest::SetExperimentName
void SetExperimentName(const Aws::String &value)
Definition: CreateExperimentRequest.h:55
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::CreateExperimentRequest::WithDisplayName
CreateExperimentRequest & WithDisplayName(Aws::String &&value)
Definition: CreateExperimentRequest.h:135
AWSVector.h
Aws::SageMaker::Model::CreateExperimentRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateExperimentRequest.h:163
Aws::SageMaker::Model::CreateExperimentRequest::SetDisplayName
void SetDisplayName(const Aws::String &value)
Definition: CreateExperimentRequest.h:107
Aws::SageMaker::Model::CreateExperimentRequest::WithExperimentName
CreateExperimentRequest & WithExperimentName(const Aws::String &value)
Definition: CreateExperimentRequest.h:73
Aws::SageMaker::Model::CreateExperimentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateExperimentRequest.h:32
Aws::SageMaker::SageMakerRequest
Definition: SageMakerRequest.h:17
Aws::SageMaker::Model::CreateExperimentRequest::WithTags
CreateExperimentRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateExperimentRequest.h:220
Aws::SageMaker::Model::CreateExperimentRequest::DisplayNameHasBeenSet
bool DisplayNameHasBeenSet() const
Definition: CreateExperimentRequest.h:100
Aws::SageMaker::Model::CreateExperimentRequest::SetExperimentName
void SetExperimentName(const char *value)
Definition: CreateExperimentRequest.h:67
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::CreateExperimentRequest::WithDescription
CreateExperimentRequest & WithDescription(const Aws::String &value)
Definition: CreateExperimentRequest.h:173
Aws::SageMaker::Model::CreateExperimentRequest::WithDescription
CreateExperimentRequest & WithDescription(const char *value)
Definition: CreateExperimentRequest.h:183
Aws::SageMaker::Model::CreateExperimentRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateExperimentRequest.h:158
Aws::SageMaker::Model::CreateExperimentRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateExperimentRequest.h:148
Aws::SageMaker::Model::CreateExperimentRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateExperimentRequest.h:196
AWSString.h
Tag.h
Aws::SageMaker::Model::CreateExperimentRequest::WithDisplayName
CreateExperimentRequest & WithDisplayName(const char *value)
Definition: CreateExperimentRequest.h:142
Aws::SageMaker::Model::CreateExperimentRequest::WithTags
CreateExperimentRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateExperimentRequest.h:214
Aws::SageMaker::Model::CreateExperimentRequest::SetDisplayName
void SetDisplayName(Aws::String &&value)
Definition: CreateExperimentRequest.h:114
Aws::SageMaker::Model::CreateExperimentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::SageMaker::Model::CreateExperimentRequest::CreateExperimentRequest
CreateExperimentRequest()
Aws::SageMaker::Model::CreateExperimentRequest::SetExperimentName
void SetExperimentName(Aws::String &&value)
Definition: CreateExperimentRequest.h:61
Aws::SageMaker::Model::CreateExperimentRequest::AddTags
CreateExperimentRequest & AddTags(Tag &&value)
Definition: CreateExperimentRequest.h:232
Aws::SageMaker::Model::CreateExperimentRequest::GetExperimentName
const Aws::String & GetExperimentName() const
Definition: CreateExperimentRequest.h:43
Aws
Definition: AccessManagementClient.h:15
SageMakerRequest.h
Aws::SageMaker::Model::CreateExperimentRequest::WithExperimentName
CreateExperimentRequest & WithExperimentName(const char *value)
Definition: CreateExperimentRequest.h:85
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::CreateExperimentRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateExperimentRequest.h:153
Aws::SageMaker::Model::CreateExperimentRequest::WithExperimentName
CreateExperimentRequest & WithExperimentName(Aws::String &&value)
Definition: CreateExperimentRequest.h:79
Aws::SageMaker::Model::CreateExperimentRequest::WithDescription
CreateExperimentRequest & WithDescription(Aws::String &&value)
Definition: CreateExperimentRequest.h:178
Aws::SageMaker::Model::CreateExperimentRequest
Definition: CreateExperimentRequest.h:24
Aws::SageMaker::Model::CreateExperimentRequest::AddTags
CreateExperimentRequest & AddTags(const Tag &value)
Definition: CreateExperimentRequest.h:226