AWS SDK for C++  1.8.95
AWS SDK for C++
CreateTrialRequest.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 "CreateTrial"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
43  inline const Aws::String& GetTrialName() const{ return m_trialName; }
44 
49  inline bool TrialNameHasBeenSet() const { return m_trialNameHasBeenSet; }
50 
55  inline void SetTrialName(const Aws::String& value) { m_trialNameHasBeenSet = true; m_trialName = value; }
56 
61  inline void SetTrialName(Aws::String&& value) { m_trialNameHasBeenSet = true; m_trialName = std::move(value); }
62 
67  inline void SetTrialName(const char* value) { m_trialNameHasBeenSet = true; m_trialName.assign(value); }
68 
73  inline CreateTrialRequest& WithTrialName(const Aws::String& value) { SetTrialName(value); return *this;}
74 
79  inline CreateTrialRequest& WithTrialName(Aws::String&& value) { SetTrialName(std::move(value)); return *this;}
80 
85  inline CreateTrialRequest& WithTrialName(const char* value) { SetTrialName(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 CreateTrialRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
129 
135  inline CreateTrialRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
136 
142  inline CreateTrialRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
143 
144 
148  inline const Aws::String& GetExperimentName() const{ return m_experimentName; }
149 
153  inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
154 
158  inline void SetExperimentName(const Aws::String& value) { m_experimentNameHasBeenSet = true; m_experimentName = value; }
159 
163  inline void SetExperimentName(Aws::String&& value) { m_experimentNameHasBeenSet = true; m_experimentName = std::move(value); }
164 
168  inline void SetExperimentName(const char* value) { m_experimentNameHasBeenSet = true; m_experimentName.assign(value); }
169 
173  inline CreateTrialRequest& WithExperimentName(const Aws::String& value) { SetExperimentName(value); return *this;}
174 
178  inline CreateTrialRequest& WithExperimentName(Aws::String&& value) { SetExperimentName(std::move(value)); return *this;}
179 
183  inline CreateTrialRequest& WithExperimentName(const char* value) { SetExperimentName(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 CreateTrialRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
215 
220  inline CreateTrialRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
221 
226  inline CreateTrialRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
227 
232  inline CreateTrialRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
233 
234  private:
235 
236  Aws::String m_trialName;
237  bool m_trialNameHasBeenSet;
238 
239  Aws::String m_displayName;
240  bool m_displayNameHasBeenSet;
241 
242  Aws::String m_experimentName;
243  bool m_experimentNameHasBeenSet;
244 
245  Aws::Vector<Tag> m_tags;
246  bool m_tagsHasBeenSet;
247  };
248 
249 } // namespace Model
250 } // namespace SageMaker
251 } // namespace Aws
#define AWS_SAGEMAKER_API
CreateTrialRequest & WithExperimentName(const char *value)
const Aws::Vector< Tag > & GetTags() const
CreateTrialRequest & WithTags(const Aws::Vector< Tag > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateTrialRequest & WithTrialName(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
CreateTrialRequest & WithTrialName(Aws::String &&value)
void SetTrialName(const Aws::String &value)
CreateTrialRequest & WithDisplayName(Aws::String &&value)
CreateTrialRequest & WithExperimentName(const Aws::String &value)
CreateTrialRequest & WithExperimentName(Aws::String &&value)
const Aws::String & GetDisplayName() const
void SetDisplayName(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
const Aws::String & GetExperimentName() const
virtual const char * GetServiceRequestName() const override
CreateTrialRequest & WithDisplayName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateTrialRequest & WithTrialName(const char *value)
CreateTrialRequest & AddTags(Tag &&value)
CreateTrialRequest & AddTags(const Tag &value)
const Aws::String & GetTrialName() const
CreateTrialRequest & WithTags(Aws::Vector< Tag > &&value)
void SetTags(const Aws::Vector< Tag > &value)
void SetExperimentName(const Aws::String &value)
CreateTrialRequest & WithDisplayName(const char *value)