AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
32 //We have to define these because Microsoft doesn't auto generate them
33 AWS_CODEGURUPROFILER_API GetProfileResult(GetProfileResult&&);
34 AWS_CODEGURUPROFILER_API GetProfileResult& operator=(GetProfileResult&&);
35 //we delete these because Microsoft doesn't handle move generation correctly
36 //and we therefore don't trust them to get it right here either.
39
40
43
44
45
47
50 inline const Aws::String& GetContentEncoding() const{ return m_contentEncoding; }
51 inline void SetContentEncoding(const Aws::String& value) { m_contentEncoding = value; }
52 inline void SetContentEncoding(Aws::String&& value) { m_contentEncoding = std::move(value); }
53 inline void SetContentEncoding(const char* value) { m_contentEncoding.assign(value); }
54 inline GetProfileResult& WithContentEncoding(const Aws::String& value) { SetContentEncoding(value); return *this;}
55 inline GetProfileResult& WithContentEncoding(Aws::String&& value) { SetContentEncoding(std::move(value)); return *this;}
56 inline GetProfileResult& WithContentEncoding(const char* value) { SetContentEncoding(value); return *this;}
58
60
65 inline const Aws::String& GetContentType() const{ return m_contentType; }
66 inline void SetContentType(const Aws::String& value) { m_contentType = value; }
67 inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); }
68 inline void SetContentType(const char* value) { m_contentType.assign(value); }
69 inline GetProfileResult& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
70 inline GetProfileResult& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
71 inline GetProfileResult& WithContentType(const char* value) { SetContentType(value); return *this;}
73
75
78 inline Aws::IOStream& GetProfile() const { return m_profile.GetUnderlyingStream(); }
79 inline void ReplaceBody(Aws::IOStream* body) { m_profile = Aws::Utils::Stream::ResponseStream(body); }
80
82
84
85 inline const Aws::String& GetRequestId() const{ return m_requestId; }
86 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
87 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
88 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
89 inline GetProfileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
90 inline GetProfileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
91 inline GetProfileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
93 private:
94
95 Aws::String m_contentEncoding;
96
97 Aws::String m_contentType;
98
100
101 Aws::String m_requestId;
102 };
103
104} // namespace Model
105} // namespace CodeGuruProfiler
106} // namespace Aws
AWS_CODEGURUPROFILER_API GetProfileResult(GetProfileResult &&)
GetProfileResult & WithContentEncoding(Aws::String &&value)
void SetContentEncoding(const Aws::String &value)
AWS_CODEGURUPROFILER_API GetProfileResult()
AWS_CODEGURUPROFILER_API GetProfileResult & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
void SetContentType(const Aws::String &value)
GetProfileResult & operator=(const GetProfileResult &)=delete
AWS_CODEGURUPROFILER_API GetProfileResult(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
GetProfileResult(const GetProfileResult &)=delete
GetProfileResult & WithContentType(Aws::String &&value)
GetProfileResult & WithContentEncoding(const Aws::String &value)
GetProfileResult & WithContentType(const char *value)
void SetRequestId(const Aws::String &value)
GetProfileResult & WithRequestId(Aws::String &&value)
AWS_CODEGURUPROFILER_API GetProfileResult & operator=(GetProfileResult &&)
GetProfileResult & WithRequestId(const Aws::String &value)
GetProfileResult & WithContentType(const Aws::String &value)
GetProfileResult & WithRequestId(const char *value)
GetProfileResult & WithContentEncoding(const char *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