AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename TrialNameT = Aws::String>
48 void SetTrialName(TrialNameT&& value) { m_trialNameHasBeenSet = true; m_trialName = std::forward<TrialNameT>(value); }
49 template<typename TrialNameT = Aws::String>
50 CreateTrialRequest& WithTrialName(TrialNameT&& value) { SetTrialName(std::forward<TrialNameT>(value)); return *this;}
52
54
59 inline const Aws::String& GetDisplayName() const { return m_displayName; }
60 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
61 template<typename DisplayNameT = Aws::String>
62 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
63 template<typename DisplayNameT = Aws::String>
64 CreateTrialRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
66
68
71 inline const Aws::String& GetExperimentName() const { return m_experimentName; }
72 inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
73 template<typename ExperimentNameT = Aws::String>
74 void SetExperimentName(ExperimentNameT&& value) { m_experimentNameHasBeenSet = true; m_experimentName = std::forward<ExperimentNameT>(value); }
75 template<typename ExperimentNameT = Aws::String>
76 CreateTrialRequest& WithExperimentName(ExperimentNameT&& value) { SetExperimentName(std::forward<ExperimentNameT>(value)); return *this;}
78
80
81 inline const MetadataProperties& GetMetadataProperties() const { return m_metadataProperties; }
82 inline bool MetadataPropertiesHasBeenSet() const { return m_metadataPropertiesHasBeenSet; }
83 template<typename MetadataPropertiesT = MetadataProperties>
84 void SetMetadataProperties(MetadataPropertiesT&& value) { m_metadataPropertiesHasBeenSet = true; m_metadataProperties = std::forward<MetadataPropertiesT>(value); }
85 template<typename MetadataPropertiesT = MetadataProperties>
86 CreateTrialRequest& WithMetadataProperties(MetadataPropertiesT&& value) { SetMetadataProperties(std::forward<MetadataPropertiesT>(value)); return *this;}
88
90
95 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
96 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
97 template<typename TagsT = Aws::Vector<Tag>>
98 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
99 template<typename TagsT = Aws::Vector<Tag>>
100 CreateTrialRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
101 template<typename TagsT = Tag>
102 CreateTrialRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
104 private:
105
106 Aws::String m_trialName;
107 bool m_trialNameHasBeenSet = false;
108
109 Aws::String m_displayName;
110 bool m_displayNameHasBeenSet = false;
111
112 Aws::String m_experimentName;
113 bool m_experimentNameHasBeenSet = false;
114
115 MetadataProperties m_metadataProperties;
116 bool m_metadataPropertiesHasBeenSet = false;
117
118 Aws::Vector<Tag> m_tags;
119 bool m_tagsHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace SageMaker
124} // namespace Aws
const Aws::String & GetExperimentName() const
const MetadataProperties & GetMetadataProperties() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
AWS_SAGEMAKER_API CreateTrialRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetMetadataProperties(MetadataPropertiesT &&value)
CreateTrialRequest & WithDisplayName(DisplayNameT &&value)
CreateTrialRequest & WithTrialName(TrialNameT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateTrialRequest & WithExperimentName(ExperimentNameT &&value)
CreateTrialRequest & WithTags(TagsT &&value)
CreateTrialRequest & WithMetadataProperties(MetadataPropertiesT &&value)
CreateTrialRequest & AddTags(TagsT &&value)
void SetExperimentName(ExperimentNameT &&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