AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
ModelPackageGroup.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/ModelPackageGroupStatus.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <aws/sagemaker/model/UserContext.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
26
34 public:
35 AWS_SAGEMAKER_API ModelPackageGroup() = default;
36 AWS_SAGEMAKER_API ModelPackageGroup(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetModelPackageGroupName() const { return m_modelPackageGroupName; }
45 inline bool ModelPackageGroupNameHasBeenSet() const { return m_modelPackageGroupNameHasBeenSet; }
46 template <typename ModelPackageGroupNameT = Aws::String>
47 void SetModelPackageGroupName(ModelPackageGroupNameT&& value) {
48 m_modelPackageGroupNameHasBeenSet = true;
49 m_modelPackageGroupName = std::forward<ModelPackageGroupNameT>(value);
50 }
51 template <typename ModelPackageGroupNameT = Aws::String>
52 ModelPackageGroup& WithModelPackageGroupName(ModelPackageGroupNameT&& value) {
53 SetModelPackageGroupName(std::forward<ModelPackageGroupNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetModelPackageGroupArn() const { return m_modelPackageGroupArn; }
63 inline bool ModelPackageGroupArnHasBeenSet() const { return m_modelPackageGroupArnHasBeenSet; }
64 template <typename ModelPackageGroupArnT = Aws::String>
65 void SetModelPackageGroupArn(ModelPackageGroupArnT&& value) {
66 m_modelPackageGroupArnHasBeenSet = true;
67 m_modelPackageGroupArn = std::forward<ModelPackageGroupArnT>(value);
68 }
69 template <typename ModelPackageGroupArnT = Aws::String>
70 ModelPackageGroup& WithModelPackageGroupArn(ModelPackageGroupArnT&& value) {
71 SetModelPackageGroupArn(std::forward<ModelPackageGroupArnT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetModelPackageGroupDescription() const { return m_modelPackageGroupDescription; }
81 inline bool ModelPackageGroupDescriptionHasBeenSet() const { return m_modelPackageGroupDescriptionHasBeenSet; }
82 template <typename ModelPackageGroupDescriptionT = Aws::String>
83 void SetModelPackageGroupDescription(ModelPackageGroupDescriptionT&& value) {
84 m_modelPackageGroupDescriptionHasBeenSet = true;
85 m_modelPackageGroupDescription = std::forward<ModelPackageGroupDescriptionT>(value);
86 }
87 template <typename ModelPackageGroupDescriptionT = Aws::String>
88 ModelPackageGroup& WithModelPackageGroupDescription(ModelPackageGroupDescriptionT&& value) {
89 SetModelPackageGroupDescription(std::forward<ModelPackageGroupDescriptionT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
99 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
100 template <typename CreationTimeT = Aws::Utils::DateTime>
101 void SetCreationTime(CreationTimeT&& value) {
102 m_creationTimeHasBeenSet = true;
103 m_creationTime = std::forward<CreationTimeT>(value);
104 }
105 template <typename CreationTimeT = Aws::Utils::DateTime>
106 ModelPackageGroup& WithCreationTime(CreationTimeT&& value) {
107 SetCreationTime(std::forward<CreationTimeT>(value));
108 return *this;
109 }
111
113
114 inline const UserContext& GetCreatedBy() const { return m_createdBy; }
115 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
116 template <typename CreatedByT = UserContext>
117 void SetCreatedBy(CreatedByT&& value) {
118 m_createdByHasBeenSet = true;
119 m_createdBy = std::forward<CreatedByT>(value);
120 }
121 template <typename CreatedByT = UserContext>
122 ModelPackageGroup& WithCreatedBy(CreatedByT&& value) {
123 SetCreatedBy(std::forward<CreatedByT>(value));
124 return *this;
125 }
127
129
140 inline ModelPackageGroupStatus GetModelPackageGroupStatus() const { return m_modelPackageGroupStatus; }
141 inline bool ModelPackageGroupStatusHasBeenSet() const { return m_modelPackageGroupStatusHasBeenSet; }
143 m_modelPackageGroupStatusHasBeenSet = true;
144 m_modelPackageGroupStatus = value;
145 }
148 return *this;
149 }
151
153
159 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
160 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
161 template <typename TagsT = Aws::Vector<Tag>>
162 void SetTags(TagsT&& value) {
163 m_tagsHasBeenSet = true;
164 m_tags = std::forward<TagsT>(value);
165 }
166 template <typename TagsT = Aws::Vector<Tag>>
167 ModelPackageGroup& WithTags(TagsT&& value) {
168 SetTags(std::forward<TagsT>(value));
169 return *this;
170 }
171 template <typename TagsT = Tag>
172 ModelPackageGroup& AddTags(TagsT&& value) {
173 m_tagsHasBeenSet = true;
174 m_tags.emplace_back(std::forward<TagsT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_modelPackageGroupName;
180
181 Aws::String m_modelPackageGroupArn;
182
183 Aws::String m_modelPackageGroupDescription;
184
185 Aws::Utils::DateTime m_creationTime{};
186
187 UserContext m_createdBy;
188
190
191 Aws::Vector<Tag> m_tags;
192 bool m_modelPackageGroupNameHasBeenSet = false;
193 bool m_modelPackageGroupArnHasBeenSet = false;
194 bool m_modelPackageGroupDescriptionHasBeenSet = false;
195 bool m_creationTimeHasBeenSet = false;
196 bool m_createdByHasBeenSet = false;
197 bool m_modelPackageGroupStatusHasBeenSet = false;
198 bool m_tagsHasBeenSet = false;
199};
200
201} // namespace Model
202} // namespace SageMaker
203} // namespace Aws
const Aws::String & GetModelPackageGroupArn() const
void SetCreationTime(CreationTimeT &&value)
void SetModelPackageGroupStatus(ModelPackageGroupStatus value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetCreationTime() const
ModelPackageGroup & WithCreationTime(CreationTimeT &&value)
ModelPackageGroup & WithModelPackageGroupArn(ModelPackageGroupArnT &&value)
ModelPackageGroup & WithTags(TagsT &&value)
const Aws::String & GetModelPackageGroupName() const
void SetModelPackageGroupDescription(ModelPackageGroupDescriptionT &&value)
ModelPackageGroup & WithModelPackageGroupName(ModelPackageGroupNameT &&value)
void SetModelPackageGroupArn(ModelPackageGroupArnT &&value)
ModelPackageGroup & WithCreatedBy(CreatedByT &&value)
AWS_SAGEMAKER_API ModelPackageGroup()=default
ModelPackageGroup & WithModelPackageGroupDescription(ModelPackageGroupDescriptionT &&value)
AWS_SAGEMAKER_API ModelPackageGroup(Aws::Utils::Json::JsonView jsonValue)
ModelPackageGroup & WithModelPackageGroupStatus(ModelPackageGroupStatus value)
AWS_SAGEMAKER_API ModelPackageGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
ModelPackageGroup & AddTags(TagsT &&value)
ModelPackageGroupStatus GetModelPackageGroupStatus() const
void SetModelPackageGroupName(ModelPackageGroupNameT &&value)
const Aws::String & GetModelPackageGroupDescription() const
const Aws::Vector< Tag > & GetTags() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue