AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateExperimentRequest.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SageMaker
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_SAGEMAKER_API CreateExperimentRequest();
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_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
38
40
44 inline const Aws::String& GetExperimentName() const{ return m_experimentName; }
45 inline bool ExperimentNameHasBeenSet() const { return m_experimentNameHasBeenSet; }
46 inline void SetExperimentName(const Aws::String& value) { m_experimentNameHasBeenSet = true; m_experimentName = value; }
47 inline void SetExperimentName(Aws::String&& value) { m_experimentNameHasBeenSet = true; m_experimentName = std::move(value); }
48 inline void SetExperimentName(const char* value) { m_experimentNameHasBeenSet = true; m_experimentName.assign(value); }
49 inline CreateExperimentRequest& WithExperimentName(const Aws::String& value) { SetExperimentName(value); return *this;}
50 inline CreateExperimentRequest& WithExperimentName(Aws::String&& value) { SetExperimentName(std::move(value)); return *this;}
51 inline CreateExperimentRequest& WithExperimentName(const char* value) { SetExperimentName(value); return *this;}
53
55
60 inline const Aws::String& GetDisplayName() const{ return m_displayName; }
61 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
62 inline void SetDisplayName(const Aws::String& value) { m_displayNameHasBeenSet = true; m_displayName = value; }
63 inline void SetDisplayName(Aws::String&& value) { m_displayNameHasBeenSet = true; m_displayName = std::move(value); }
64 inline void SetDisplayName(const char* value) { m_displayNameHasBeenSet = true; m_displayName.assign(value); }
65 inline CreateExperimentRequest& WithDisplayName(const Aws::String& value) { SetDisplayName(value); return *this;}
66 inline CreateExperimentRequest& WithDisplayName(Aws::String&& value) { SetDisplayName(std::move(value)); return *this;}
67 inline CreateExperimentRequest& WithDisplayName(const char* value) { SetDisplayName(value); return *this;}
69
71
74 inline const Aws::String& GetDescription() const{ return m_description; }
75 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
76 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
77 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
78 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
79 inline CreateExperimentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
80 inline CreateExperimentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
81 inline CreateExperimentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
83
85
90 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
91 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
92 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
93 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
94 inline CreateExperimentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
95 inline CreateExperimentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
96 inline CreateExperimentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
97 inline CreateExperimentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
99 private:
100
101 Aws::String m_experimentName;
102 bool m_experimentNameHasBeenSet = false;
103
104 Aws::String m_displayName;
105 bool m_displayNameHasBeenSet = false;
106
107 Aws::String m_description;
108 bool m_descriptionHasBeenSet = false;
109
110 Aws::Vector<Tag> m_tags;
111 bool m_tagsHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace SageMaker
116} // namespace Aws
CreateExperimentRequest & AddTags(const Tag &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateExperimentRequest & WithExperimentName(const char *value)
CreateExperimentRequest & WithDescription(Aws::String &&value)
CreateExperimentRequest & WithDisplayName(const char *value)
CreateExperimentRequest & WithExperimentName(const Aws::String &value)
CreateExperimentRequest & WithDescription(const char *value)
CreateExperimentRequest & AddTags(Tag &&value)
CreateExperimentRequest & WithTags(Aws::Vector< Tag > &&value)
CreateExperimentRequest & WithExperimentName(Aws::String &&value)
CreateExperimentRequest & WithDisplayName(const Aws::String &value)
CreateExperimentRequest & WithDisplayName(Aws::String &&value)
void SetTags(const Aws::Vector< Tag > &value)
CreateExperimentRequest & WithDescription(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateExperimentRequest & WithTags(const Aws::Vector< Tag > &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