AWS SDK for C++

AWS SDK for C++ Version 1.11.813

Loading...
Searching...
No Matches
CreateModelPackageGroupRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ManagedConfiguration.h>
12#include <aws/sagemaker/model/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API CreateModelPackageGroupRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateModelPackageGroup"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetModelPackageGroupName() const { return m_modelPackageGroupName; }
41 inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; }
42 template <typename ModelPackageGroupNameT = Aws::String>
43 void SetModelPackageGroupName(ModelPackageGroupNameT&& value) {
44 m_modelPackageGroupNameHasBeenSet = true;
45 m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value);
46 }
47 template <typename ModelPackageGroupNameT = Aws::String>
49 SetModelPackageGroupName(std::forward<ModelPackageGroupNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetModelPackageGroupDescription() const { return m_modelPackageGroupDescription; }
59 inline bool ModelPackageGroupDescriptionHasBeenSet() const { return m_modelPackageGroupDescriptionHasBeenSet; }
60 template <typename ModelPackageGroupDescriptionT = Aws::String>
61 void SetModelPackageGroupDescription(ModelPackageGroupDescriptionT&& value) {
62 m_modelPackageGroupDescriptionHasBeenSet = true;
63 m_modelPackageGroupDescription = std::forward<ModelPackageGroupDescriptionT>(value);
64 }
65 template <typename ModelPackageGroupDescriptionT = Aws::String>
66 CreateModelPackageGroupRequest& WithModelPackageGroupDescription(ModelPackageGroupDescriptionT&& value) {
67 SetModelPackageGroupDescription(std::forward<ModelPackageGroupDescriptionT>(value));
68 return *this;
69 }
71
73
80 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
81 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
82 template <typename TagsT = Aws::Vector<Tag>>
83 void SetTags(TagsT&& value) {
84 m_tagsHasBeenSet = true;
85 m_tags = std::forward<TagsT>(value);
86 }
87 template <typename TagsT = Aws::Vector<Tag>>
89 SetTags(std::forward<TagsT>(value));
90 return *this;
91 }
92 template <typename TagsT = Tag>
94 m_tagsHasBeenSet = true;
95 m_tags.emplace_back(std::forward<TagsT>(value));
96 return *this;
97 }
99
101
104 inline const ManagedConfiguration& GetManagedConfiguration() const { return m_managedConfiguration; }
105 inline bool ManagedConfigurationHasBeenSet() const { return m_managedConfigurationHasBeenSet; }
106 template <typename ManagedConfigurationT = ManagedConfiguration>
107 void SetManagedConfiguration(ManagedConfigurationT&& value) {
108 m_managedConfigurationHasBeenSet = true;
109 m_managedConfiguration = std::forward<ManagedConfigurationT>(value);
110 }
111 template <typename ManagedConfigurationT = ManagedConfiguration>
113 SetManagedConfiguration(std::forward<ManagedConfigurationT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_modelPackageGroupName;
119
120 Aws::String m_modelPackageGroupDescription;
121
122 Aws::Vector<Tag> m_tags;
123
124 ManagedConfiguration m_managedConfiguration;
125 bool m_modelPackageGroupNameHasBeenSet = false;
126 bool m_modelPackageGroupDescriptionHasBeenSet = false;
127 bool m_tagsHasBeenSet = false;
128 bool m_managedConfigurationHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace SageMaker
133} // namespace Aws
AWS_SAGEMAKER_API CreateModelPackageGroupRequest()=default
CreateModelPackageGroupRequest & WithModelPackageGroupName(ModelPackageGroupNameT &&value)
CreateModelPackageGroupRequest & WithManagedConfiguration(ManagedConfigurationT &&value)
void SetModelPackageGroupDescription(ModelPackageGroupDescriptionT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateModelPackageGroupRequest & WithModelPackageGroupDescription(ModelPackageGroupDescriptionT &&value)
CreateModelPackageGroupRequest & AddTags(TagsT &&value)
CreateModelPackageGroupRequest & WithTags(TagsT &&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