AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
FileSource.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SageMaker {
20namespace Model {
21
28 public:
29 AWS_SAGEMAKER_API FileSource() = default;
30 AWS_SAGEMAKER_API FileSource(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SAGEMAKER_API FileSource& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetContentType() const { return m_contentType; }
39 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
40 template <typename ContentTypeT = Aws::String>
41 void SetContentType(ContentTypeT&& value) {
42 m_contentTypeHasBeenSet = true;
43 m_contentType = std::forward<ContentTypeT>(value);
44 }
45 template <typename ContentTypeT = Aws::String>
46 FileSource& WithContentType(ContentTypeT&& value) {
47 SetContentType(std::forward<ContentTypeT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetContentDigest() const { return m_contentDigest; }
57 inline bool ContentDigestHasBeenSet() const { return m_contentDigestHasBeenSet; }
58 template <typename ContentDigestT = Aws::String>
59 void SetContentDigest(ContentDigestT&& value) {
60 m_contentDigestHasBeenSet = true;
61 m_contentDigest = std::forward<ContentDigestT>(value);
62 }
63 template <typename ContentDigestT = Aws::String>
64 FileSource& WithContentDigest(ContentDigestT&& value) {
65 SetContentDigest(std::forward<ContentDigestT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetS3Uri() const { return m_s3Uri; }
75 inline bool S3UriHasBeenSet() const { return m_s3UriHasBeenSet; }
76 template <typename S3UriT = Aws::String>
77 void SetS3Uri(S3UriT&& value) {
78 m_s3UriHasBeenSet = true;
79 m_s3Uri = std::forward<S3UriT>(value);
80 }
81 template <typename S3UriT = Aws::String>
82 FileSource& WithS3Uri(S3UriT&& value) {
83 SetS3Uri(std::forward<S3UriT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_contentType;
89
90 Aws::String m_contentDigest;
91
92 Aws::String m_s3Uri;
93 bool m_contentTypeHasBeenSet = false;
94 bool m_contentDigestHasBeenSet = false;
95 bool m_s3UriHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace SageMaker
100} // namespace Aws
const Aws::String & GetS3Uri() const
Definition FileSource.h:74
const Aws::String & GetContentType() const
Definition FileSource.h:38
FileSource & WithContentDigest(ContentDigestT &&value)
Definition FileSource.h:64
AWS_SAGEMAKER_API FileSource(Aws::Utils::Json::JsonView jsonValue)
void SetContentType(ContentTypeT &&value)
Definition FileSource.h:41
FileSource & WithS3Uri(S3UriT &&value)
Definition FileSource.h:82
AWS_SAGEMAKER_API FileSource & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetContentDigest(ContentDigestT &&value)
Definition FileSource.h:59
FileSource & WithContentType(ContentTypeT &&value)
Definition FileSource.h:46
void SetS3Uri(S3UriT &&value)
Definition FileSource.h:77
const Aws::String & GetContentDigest() const
Definition FileSource.h:56
AWS_SAGEMAKER_API FileSource()=default
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue