AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
GetProfileResult.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/http/HttpResponse.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/core/utils/stream/ResponseStream.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace CodeGuruProfiler {
20namespace Model {
28 public:
29 AWS_CODEGURUPROFILER_API GetProfileResult() = default;
30 AWS_CODEGURUPROFILER_API GetProfileResult(GetProfileResult&&) = default;
31 AWS_CODEGURUPROFILER_API GetProfileResult& operator=(GetProfileResult&&) = default;
32 // we delete these because Microsoft doesn't handle move generation correctly
33 // and we therefore don't trust them to get it right here either.
36
39
41
44 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
45 template <typename ContentEncodingT = Aws::String>
46 void SetContentEncoding(ContentEncodingT&& value) {
47 m_contentEncodingHasBeenSet = true;
48 m_contentEncoding = std::forward<ContentEncodingT>(value);
49 }
50 template <typename ContentEncodingT = Aws::String>
51 GetProfileResult& WithContentEncoding(ContentEncodingT&& value) {
52 SetContentEncoding(std::forward<ContentEncodingT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetContentType() const { return m_contentType; }
64 template <typename ContentTypeT = Aws::String>
65 void SetContentType(ContentTypeT&& value) {
66 m_contentTypeHasBeenSet = true;
67 m_contentType = std::forward<ContentTypeT>(value);
68 }
69 template <typename ContentTypeT = Aws::String>
70 GetProfileResult& WithContentType(ContentTypeT&& value) {
71 SetContentType(std::forward<ContentTypeT>(value));
72 return *this;
73 }
75
77
80 inline Aws::IOStream& GetProfile() const { return m_profile.GetUnderlyingStream(); }
81 inline void ReplaceBody(Aws::IOStream* body) { m_profile = Aws::Utils::Stream::ResponseStream(body); }
82
84
86
87 inline const Aws::String& GetRequestId() const { return m_requestId; }
88 template <typename RequestIdT = Aws::String>
89 void SetRequestId(RequestIdT&& value) {
90 m_requestIdHasBeenSet = true;
91 m_requestId = std::forward<RequestIdT>(value);
92 }
93 template <typename RequestIdT = Aws::String>
94 GetProfileResult& WithRequestId(RequestIdT&& value) {
95 SetRequestId(std::forward<RequestIdT>(value));
96 return *this;
97 }
99 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
100
101 private:
102 Aws::String m_contentEncoding;
103
104 Aws::String m_contentType;
105
107
108 Aws::String m_requestId;
109 Aws::Http::HttpResponseCode m_HttpResponseCode;
110 bool m_contentEncodingHasBeenSet = false;
111 bool m_contentTypeHasBeenSet = false;
112 bool m_profileHasBeenSet = false;
113 bool m_requestIdHasBeenSet = false;
114};
115
116} // namespace Model
117} // namespace CodeGuruProfiler
118} // 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::Http::HttpResponseCode GetHttpResponseCode() const
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