AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ArtifactSource.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/sagemaker/model/ArtifactSourceType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SAGEMAKER_API ArtifactSource();
38 AWS_SAGEMAKER_API ArtifactSource(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetSourceUri() const{ return m_sourceUri; }
48 inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
49 inline void SetSourceUri(const Aws::String& value) { m_sourceUriHasBeenSet = true; m_sourceUri = value; }
50 inline void SetSourceUri(Aws::String&& value) { m_sourceUriHasBeenSet = true; m_sourceUri = std::move(value); }
51 inline void SetSourceUri(const char* value) { m_sourceUriHasBeenSet = true; m_sourceUri.assign(value); }
52 inline ArtifactSource& WithSourceUri(const Aws::String& value) { SetSourceUri(value); return *this;}
53 inline ArtifactSource& WithSourceUri(Aws::String&& value) { SetSourceUri(std::move(value)); return *this;}
54 inline ArtifactSource& WithSourceUri(const char* value) { SetSourceUri(value); return *this;}
56
58
61 inline const Aws::Vector<ArtifactSourceType>& GetSourceTypes() const{ return m_sourceTypes; }
62 inline bool SourceTypesHasBeenSet() const { return m_sourceTypesHasBeenSet; }
63 inline void SetSourceTypes(const Aws::Vector<ArtifactSourceType>& value) { m_sourceTypesHasBeenSet = true; m_sourceTypes = value; }
64 inline void SetSourceTypes(Aws::Vector<ArtifactSourceType>&& value) { m_sourceTypesHasBeenSet = true; m_sourceTypes = std::move(value); }
66 inline ArtifactSource& WithSourceTypes(Aws::Vector<ArtifactSourceType>&& value) { SetSourceTypes(std::move(value)); return *this;}
67 inline ArtifactSource& AddSourceTypes(const ArtifactSourceType& value) { m_sourceTypesHasBeenSet = true; m_sourceTypes.push_back(value); return *this; }
68 inline ArtifactSource& AddSourceTypes(ArtifactSourceType&& value) { m_sourceTypesHasBeenSet = true; m_sourceTypes.push_back(std::move(value)); return *this; }
70 private:
71
72 Aws::String m_sourceUri;
73 bool m_sourceUriHasBeenSet = false;
74
76 bool m_sourceTypesHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace SageMaker
81} // namespace Aws
ArtifactSource & WithSourceTypes(const Aws::Vector< ArtifactSourceType > &value)
void SetSourceTypes(Aws::Vector< ArtifactSourceType > &&value)
AWS_SAGEMAKER_API ArtifactSource & operator=(Aws::Utils::Json::JsonView jsonValue)
ArtifactSource & WithSourceUri(const char *value)
ArtifactSource & AddSourceTypes(const ArtifactSourceType &value)
const Aws::String & GetSourceUri() const
ArtifactSource & WithSourceTypes(Aws::Vector< ArtifactSourceType > &&value)
void SetSourceUri(Aws::String &&value)
ArtifactSource & WithSourceUri(Aws::String &&value)
ArtifactSource & AddSourceTypes(ArtifactSourceType &&value)
void SetSourceUri(const char *value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetSourceUri(const Aws::String &value)
const Aws::Vector< ArtifactSourceType > & GetSourceTypes() const
ArtifactSource & WithSourceUri(const Aws::String &value)
void SetSourceTypes(const Aws::Vector< ArtifactSourceType > &value)
AWS_SAGEMAKER_API ArtifactSource(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue