AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
GetProfileResult.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.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
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace CodeGuruProfiler {
19namespace Model {
27 public:
28 AWS_CODEGURUPROFILER_API GetProfileResult() = default;
29 AWS_CODEGURUPROFILER_API GetProfileResult(GetProfileResult&&) = default;
30 AWS_CODEGURUPROFILER_API GetProfileResult& operator=(GetProfileResult&&) = default;
31 // we delete these because Microsoft doesn't handle move generation correctly
32 // and we therefore don't trust them to get it right here either.
35
38
40
43 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
44 template <typename ContentEncodingT = Aws::String>
45 void SetContentEncoding(ContentEncodingT&& value) {
46 m_contentEncodingHasBeenSet = true;
47 m_contentEncoding = std::forward<ContentEncodingT>(value);
48 }
49 template <typename ContentEncodingT = Aws::String>
50 GetProfileResult& WithContentEncoding(ContentEncodingT&& value) {
51 SetContentEncoding(std::forward<ContentEncodingT>(value));
52 return *this;
53 }
55
57
62 inline const Aws::String& GetContentType() const { return m_contentType; }
63 template <typename ContentTypeT = Aws::String>
64 void SetContentType(ContentTypeT&& value) {
65 m_contentTypeHasBeenSet = true;
66 m_contentType = std::forward<ContentTypeT>(value);
67 }
68 template <typename ContentTypeT = Aws::String>
69 GetProfileResult& WithContentType(ContentTypeT&& value) {
70 SetContentType(std::forward<ContentTypeT>(value));
71 return *this;
72 }
74
76
79 inline Aws::IOStream& GetProfile() const { return m_profile.GetUnderlyingStream(); }
80 inline void ReplaceBody(Aws::IOStream* body) { m_profile = Aws::Utils::Stream::ResponseStream(body); }
81
83
85
86 inline const Aws::String& GetRequestId() const { return m_requestId; }
87 template <typename RequestIdT = Aws::String>
88 void SetRequestId(RequestIdT&& value) {
89 m_requestIdHasBeenSet = true;
90 m_requestId = std::forward<RequestIdT>(value);
91 }
92 template <typename RequestIdT = Aws::String>
93 GetProfileResult& WithRequestId(RequestIdT&& value) {
94 SetRequestId(std::forward<RequestIdT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_contentEncoding;
100
101 Aws::String m_contentType;
102
104
105 Aws::String m_requestId;
106 bool m_contentEncodingHasBeenSet = false;
107 bool m_contentTypeHasBeenSet = false;
108 bool m_profileHasBeenSet = false;
109 bool m_requestIdHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace CodeGuruProfiler
114} // namespace Aws
GetProfileResult & WithContentType(ContentTypeT &&value)
void SetContentEncoding(ContentEncodingT &&value)
AWS_CODEGURUPROFILER_API GetProfileResult(GetProfileResult &&)=default
AWS_CODEGURUPROFILER_API GetProfileResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetProfileResult & WithRequestId(RequestIdT &&value)
GetProfileResult & operator=(const GetProfileResult &)=delete
AWS_CODEGURUPROFILER_API GetProfileResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetProfileResult(const GetProfileResult &)=delete
AWS_CODEGURUPROFILER_API GetProfileResult()=default
AWS_CODEGURUPROFILER_API GetProfileResult & operator=(GetProfileResult &&)=default
GetProfileResult & WithContentEncoding(ContentEncodingT &&value)
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