AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateTrialRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/MetadataProperties.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API CreateTrialRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateTrial"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetTrialName() const{ return m_trialName; }
46 inline bool TrialNameHasBeenSet() const { return m_trialNameHasBeenSet; }
47 inline void SetTrialName(const Aws::String& value) { m_trialNameHasBeenSet = true; m_trialName = value; }
48 inline void SetTrialName(Aws::String&& value) { m_trialNameHasBeenSet = true; m_trialName = std::move(value); }
49 inline void SetTrialName(const char* value) { m_trialNameHasBeenSet = true; m_trialName.assign(value); }
50 inline CreateTrialRequest& WithTrialName(const Aws::String& value) { SetTrialName(value); return *this;}
51 inline CreateTrialRequest& WithTrialName(Aws::String&& value) { SetTrialName(std::move(value)); return *this;}
52 inline CreateTrialRequest& WithTrialName(const char* value) { SetTrialName(value); return *this;}
54
56
61 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
62 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
63 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
64 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
65 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
66 inline CreateTrialRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
67 inline CreateTrialRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
68 inline CreateTrialRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
70
72
75 inline const Aws::String& GetExperimentName() const{ return m_experimentName; }
76 inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
77 inline void SetExperimentName(const Aws::String& value) { m_experimentNameHasBeenSet = true; m_experimentName = value; }
78 inline void SetExperimentName(Aws::String&& value) { m_experimentNameHasBeenSet = true; m_experimentName = std::move(value); }
79 inline void SetExperimentName(const char* value) { m_experimentNameHasBeenSet = true; m_experimentName.assign(value); }
80 inline CreateTrialRequest& WithExperimentName(const Aws::String& value) { SetExperimentName(value); return *this;}
81 inline CreateTrialRequest& WithExperimentName(Aws::String&& value) { SetExperimentName(std::move(value)); return *this;}
82 inline CreateTrialRequest& WithExperimentName(const char* value) { SetExperimentName(value); return *this;}
84
86
87 inline const MetadataProperties& GetMetadataProperties() const{ return m_metadataProperties; }
88 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
89 inline void SetMetadataProperties(const MetadataProperties& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = value; }
90 inline void SetMetadataProperties(MetadataProperties&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::move(value); }
92 inline CreateTrialRequest& WithMetadataProperties(MetadataProperties&& value) { SetMetadataProperties(std::move(value)); return *this;}
94
96
101 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
104 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
105 inline CreateTrialRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
106 inline CreateTrialRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
107 inline CreateTrialRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
108 inline CreateTrialRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
110 private:
111
112 Aws::String m_trialName;
113 bool m_trialNameHasBeenSet = false;
114
115 Aws::String m_displayName;
116 bool m_displayNameHasBeenSet = false;
117
118 Aws::String m_experimentName;
119 bool m_experimentNameHasBeenSet = false;
120
121 MetadataProperties m_metadataProperties;
122 bool m_metadataPropertiesHasBeenSet = false;
123
124 Aws::Vector<Tag> m_tags;
125 bool m_tagsHasBeenSet = false;
126 };
127
128} // namespace Model
129} // namespace SageMaker
130} // namespace Aws
const Aws::String & GetExperimentName() const
const MetadataProperties & GetMetadataProperties() const
CreateTrialRequest & WithExperimentName(const Aws::String &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetDisplayName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
void SetMetadataProperties(const MetadataProperties &value)
CreateTrialRequest & WithTags(const Aws::Vector< Tag > &value)
CreateTrialRequest & WithTags(Aws::Vector< Tag > &&value)
CreateTrialRequest & WithExperimentName(const char *value)
CreateTrialRequest & WithTrialName(const char *value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateTrialRequest & WithExperimentName(Aws::String &&value)
CreateTrialRequest & WithMetadataProperties(const MetadataProperties &value)
void SetTrialName(const Aws::String &value)
void SetMetadataProperties(MetadataProperties &&value)
CreateTrialRequest & WithTrialName(const Aws::String &value)
CreateTrialRequest & WithMetadataProperties(MetadataProperties &&value)
const Aws::Vector< Tag > & GetTags() const
void SetTags(Aws::Vector< Tag > &&value)
CreateTrialRequest & WithDisplayName(const Aws::String &value)
CreateTrialRequest & AddTags(const Tag &value)
CreateTrialRequest & WithDisplayName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateTrialRequest & AddTags(Tag &&value)
CreateTrialRequest & WithTrialName(Aws::String &&value)
void SetExperimentName(const Aws::String &value)
CreateTrialRequest & WithDisplayName(const char *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