AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetProfileResult.h
1
6#pragma once
7#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace CodeGuruProfiler
19{
20namespace Model
21{
29 {
30 public:
31 AWS_CODEGURUPROFILER_API GetProfileResult() = default;
32 AWS_CODEGURUPROFILER_API GetProfileResult(GetProfileResult&&) = default;
33 AWS_CODEGURUPROFILER_API GetProfileResult& operator=(GetProfileResult&&) = default;
34 //we delete these because Microsoft doesn't handle move generation correctly
35 //and we therefore don't trust them to get it right here either.
38
39
42
43
44
46
49 inline const Aws::String& GetContentEncoding() const { return m_contentEncoding; }
50 template<typename ContentEncodingT = Aws::String>
51 void SetContentEncoding(ContentEncodingT&& value) { m_contentEncodingHasBeenSet = true; m_contentEncoding = std::forward<ContentEncodingT>(value); }
52 template<typename ContentEncodingT = Aws::String>
53 GetProfileResult& WithContentEncoding(ContentEncodingT&& value) { SetContentEncoding(std::forward<ContentEncodingT>(value)); return *this;}
55
57
62 inline const Aws::String& GetContentType() const { return m_contentType; }
63 template<typename ContentTypeT = Aws::String>
64 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
65 template<typename ContentTypeT = Aws::String>
66 GetProfileResult& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
68
70
73 inline Aws::IOStream& GetProfile() const { return m_profile.GetUnderlyingStream(); }
74 inline void ReplaceBody(Aws::IOStream* body) { m_profile = Aws::Utils::Stream::ResponseStream(body); }
75
77
79
80 inline const Aws::String& GetRequestId() const { return m_requestId; }
81 template<typename RequestIdT = Aws::String>
82 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
83 template<typename RequestIdT = Aws::String>
84 GetProfileResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
86 private:
87
88 Aws::String m_contentEncoding;
89 bool m_contentEncodingHasBeenSet = false;
90
91 Aws::String m_contentType;
92 bool m_contentTypeHasBeenSet = false;
93
95 bool m_profileHasBeenSet = false;
96
97 Aws::String m_requestId;
98 bool m_requestIdHasBeenSet = false;
99 };
100
101} // namespace Model
102} // namespace CodeGuruProfiler
103} // 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