AWS SDK for C++

AWS SDK for C++ Version 1.11.925

Loading...
Searching...
No Matches
SampleTrainingSessionResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/Array.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/stream/ResponseStream.h>
11#include <aws/sagemakertrainingsessionruntime/SageMakerTrainingSessionRuntime_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace SageMakerTrainingSessionRuntime {
20namespace Model {
22 public:
23 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTrainingSessionResult() = default;
24 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTrainingSessionResult(SampleTrainingSessionResult&&) = default;
25 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTrainingSessionResult& operator=(SampleTrainingSessionResult&&) = default;
26 // we delete these because Microsoft doesn't handle move generation correctly
27 // and we therefore don't trust them to get it right here either.
30
31 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTrainingSessionResult(
33 AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTrainingSessionResult& operator=(
35
37
40 inline const Aws::String& GetContentType() const { return m_contentType; }
41 template <typename ContentTypeT = Aws::String>
42 void SetContentType(ContentTypeT&& value) {
43 m_contentTypeHasBeenSet = true;
44 m_contentType = std::forward<ContentTypeT>(value);
45 }
46 template <typename ContentTypeT = Aws::String>
48 SetContentType(std::forward<ContentTypeT>(value));
49 return *this;
50 }
52
54
57 inline Aws::IOStream& GetBody() const { return m_body.GetUnderlyingStream(); }
58 inline void ReplaceBody(Aws::IOStream* body) { m_body = Aws::Utils::Stream::ResponseStream(body); }
59
61
63
64 inline const Aws::String& GetRequestId() const { return m_requestId; }
65 template <typename RequestIdT = Aws::String>
66 void SetRequestId(RequestIdT&& value) {
67 m_requestIdHasBeenSet = true;
68 m_requestId = std::forward<RequestIdT>(value);
69 }
70 template <typename RequestIdT = Aws::String>
72 SetRequestId(std::forward<RequestIdT>(value));
73 return *this;
74 }
76 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
77
78 private:
79 Aws::String m_contentType;
80
82
83 Aws::String m_requestId;
84 Aws::Http::HttpResponseCode m_HttpResponseCode;
85 bool m_contentTypeHasBeenSet = false;
86 bool m_bodyHasBeenSet = false;
87 bool m_requestIdHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace SageMakerTrainingSessionRuntime
92} // namespace Aws
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTrainingSessionResult(SampleTrainingSessionResult &&)=default
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTrainingSessionResult()=default
SampleTrainingSessionResult(const SampleTrainingSessionResult &)=delete
SampleTrainingSessionResult & operator=(const SampleTrainingSessionResult &)=delete
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTrainingSessionResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTrainingSessionResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_SAGEMAKERTRAININGSESSIONRUNTIME_API SampleTrainingSessionResult & operator=(SampleTrainingSessionResult &&)=default
Aws::IOStream & GetUnderlyingStream() const
std::basic_iostream< char, std::char_traits< char > > IOStream
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String