AWS SDK for C++  1.9.128
AWS SDK for C++
ArtifactSource.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace SageMaker
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::String& GetSourceUri() const{ return m_sourceUri; }
47 
51  inline bool SourceUriHasBeenSet() const { return m_sourceUriHasBeenSet; }
52 
56  inline void SetSourceUri(const Aws::String& value) { m_sourceUriHasBeenSet = true; m_sourceUri = value; }
57 
61  inline void SetSourceUri(Aws::String&& value) { m_sourceUriHasBeenSet = true; m_sourceUri = std::move(value); }
62 
66  inline void SetSourceUri(const char* value) { m_sourceUriHasBeenSet = true; m_sourceUri.assign(value); }
67 
71  inline ArtifactSource& WithSourceUri(const Aws::String& value) { SetSourceUri(value); return *this;}
72 
76  inline ArtifactSource& WithSourceUri(Aws::String&& value) { SetSourceUri(std::move(value)); return *this;}
77 
81  inline ArtifactSource& WithSourceUri(const char* value) { SetSourceUri(value); return *this;}
82 
83 
87  inline const Aws::Vector<ArtifactSourceType>& GetSourceTypes() const{ return m_sourceTypes; }
88 
92  inline bool SourceTypesHasBeenSet() const { return m_sourceTypesHasBeenSet; }
93 
97  inline void SetSourceTypes(const Aws::Vector<ArtifactSourceType>& value) { m_sourceTypesHasBeenSet = true; m_sourceTypes = value; }
98 
102  inline void SetSourceTypes(Aws::Vector<ArtifactSourceType>&& value) { m_sourceTypesHasBeenSet = true; m_sourceTypes = std::move(value); }
103 
107  inline ArtifactSource& WithSourceTypes(const Aws::Vector<ArtifactSourceType>& value) { SetSourceTypes(value); return *this;}
108 
112  inline ArtifactSource& WithSourceTypes(Aws::Vector<ArtifactSourceType>&& value) { SetSourceTypes(std::move(value)); return *this;}
113 
117  inline ArtifactSource& AddSourceTypes(const ArtifactSourceType& value) { m_sourceTypesHasBeenSet = true; m_sourceTypes.push_back(value); return *this; }
118 
122  inline ArtifactSource& AddSourceTypes(ArtifactSourceType&& value) { m_sourceTypesHasBeenSet = true; m_sourceTypes.push_back(std::move(value)); return *this; }
123 
124  private:
125 
126  Aws::String m_sourceUri;
127  bool m_sourceUriHasBeenSet;
128 
129  Aws::Vector<ArtifactSourceType> m_sourceTypes;
130  bool m_sourceTypesHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace SageMaker
135 } // namespace Aws
Aws::SavingsPlans::Model::SavingsPlanProductType::NOT_SET
@ NOT_SET
Aws::SageMaker::Model::ArtifactSource::SourceUriHasBeenSet
bool SourceUriHasBeenSet() const
Definition: ArtifactSource.h:51
SageMaker_EXPORTS.h
ArtifactSourceType.h
Aws::SageMaker::Model::ArtifactSource::ArtifactSource
ArtifactSource(Aws::Utils::Json::JsonView jsonValue)
Aws::SageMaker::Model::ArtifactSource::WithSourceTypes
ArtifactSource & WithSourceTypes(const Aws::Vector< ArtifactSourceType > &value)
Definition: ArtifactSource.h:107
Aws::SageMaker::Model::ArtifactSource::ArtifactSource
ArtifactSource()
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::SageMaker::Model::ArtifactSource::WithSourceTypes
ArtifactSource & WithSourceTypes(Aws::Vector< ArtifactSourceType > &&value)
Definition: ArtifactSource.h:112
Aws::SageMaker::Model::ArtifactSource::operator=
ArtifactSource & operator=(Aws::Utils::Json::JsonView jsonValue)
AWSVector.h
Aws::SageMaker::Model::ArtifactSource::SetSourceUri
void SetSourceUri(const char *value)
Definition: ArtifactSource.h:66
AWS_SAGEMAKER_API
#define AWS_SAGEMAKER_API
Definition: SageMaker_EXPORTS.h:28
Aws::SageMaker::Model::ArtifactSource
Definition: ArtifactSource.h:35
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::SageMaker::Model::ArtifactSourceType
Definition: ArtifactSourceType.h:33
Aws::SageMaker::Model::ArtifactSource::WithSourceUri
ArtifactSource & WithSourceUri(const char *value)
Definition: ArtifactSource.h:81
Aws::SageMaker::Model::ArtifactSource::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::SageMaker::Model::ArtifactSource::SetSourceUri
void SetSourceUri(const Aws::String &value)
Definition: ArtifactSource.h:56
Aws::SageMaker::Model::ArtifactSource::SetSourceUri
void SetSourceUri(Aws::String &&value)
Definition: ArtifactSource.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::SageMaker::Model::ArtifactSource::SetSourceTypes
void SetSourceTypes(const Aws::Vector< ArtifactSourceType > &value)
Definition: ArtifactSource.h:97
Aws::SageMaker::Model::ArtifactSource::AddSourceTypes
ArtifactSource & AddSourceTypes(ArtifactSourceType &&value)
Definition: ArtifactSource.h:122
Aws::SageMaker::Model::ArtifactSource::SetSourceTypes
void SetSourceTypes(Aws::Vector< ArtifactSourceType > &&value)
Definition: ArtifactSource.h:102
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::SageMaker::Model::ArtifactSource::WithSourceUri
ArtifactSource & WithSourceUri(Aws::String &&value)
Definition: ArtifactSource.h:76
Aws::SageMaker::Model::ArtifactSource::AddSourceTypes
ArtifactSource & AddSourceTypes(const ArtifactSourceType &value)
Definition: ArtifactSource.h:117
Aws::SageMaker::Model::ArtifactSource::GetSourceTypes
const Aws::Vector< ArtifactSourceType > & GetSourceTypes() const
Definition: ArtifactSource.h:87
Aws::SageMaker::Model::ArtifactSource::WithSourceUri
ArtifactSource & WithSourceUri(const Aws::String &value)
Definition: ArtifactSource.h:71
Aws::SageMaker::Model::ArtifactSource::SourceTypesHasBeenSet
bool SourceTypesHasBeenSet() const
Definition: ArtifactSource.h:92
Aws::SageMaker::Model::ArtifactSource::GetSourceUri
const Aws::String & GetSourceUri() const
Definition: ArtifactSource.h:46