AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
GetFunction2020_05_31Result.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_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 CloudFront {
19namespace Model {
21 public:
22 AWS_CLOUDFRONT_API GetFunction2020_05_31Result() = default;
25 // we delete these because Microsoft doesn't handle move generation correctly
26 // and we therefore don't trust them to get it right here either.
29
32
34
37 inline Aws::IOStream& GetFunctionCode() const { return m_functionCode.GetUnderlyingStream(); }
38 inline void ReplaceBody(Aws::IOStream* body) { m_functionCode = Aws::Utils::Stream::ResponseStream(body); }
39
41
43
47 inline const Aws::String& GetETag() const { return m_eTag; }
48 template <typename ETagT = Aws::String>
49 void SetETag(ETagT&& value) {
50 m_eTagHasBeenSet = true;
51 m_eTag = std::forward<ETagT>(value);
52 }
53 template <typename ETagT = Aws::String>
55 SetETag(std::forward<ETagT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetContentType() const { return m_contentType; }
65 template <typename ContentTypeT = Aws::String>
66 void SetContentType(ContentTypeT&& value) {
67 m_contentTypeHasBeenSet = true;
68 m_contentType = std::forward<ContentTypeT>(value);
69 }
70 template <typename ContentTypeT = Aws::String>
72 SetContentType(std::forward<ContentTypeT>(value));
73 return *this;
74 }
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template <typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) {
82 m_requestIdHasBeenSet = true;
83 m_requestId = std::forward<RequestIdT>(value);
84 }
85 template <typename RequestIdT = Aws::String>
87 SetRequestId(std::forward<RequestIdT>(value));
88 return *this;
89 }
91 private:
93
94 Aws::String m_eTag;
95
96 Aws::String m_contentType;
97
98 Aws::String m_requestId;
99 bool m_functionCodeHasBeenSet = false;
100 bool m_eTagHasBeenSet = false;
101 bool m_contentTypeHasBeenSet = false;
102 bool m_requestIdHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace CloudFront
107} // namespace Aws
GetFunction2020_05_31Result & WithRequestId(RequestIdT &&value)
AWS_CLOUDFRONT_API GetFunction2020_05_31Result & operator=(GetFunction2020_05_31Result &&)=default
GetFunction2020_05_31Result(const GetFunction2020_05_31Result &)=delete
GetFunction2020_05_31Result & operator=(const GetFunction2020_05_31Result &)=delete
AWS_CLOUDFRONT_API GetFunction2020_05_31Result(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_CLOUDFRONT_API GetFunction2020_05_31Result()=default
GetFunction2020_05_31Result & WithETag(ETagT &&value)
GetFunction2020_05_31Result & WithContentType(ContentTypeT &&value)
AWS_CLOUDFRONT_API GetFunction2020_05_31Result & operator=(Aws::AmazonWebServiceResult< Aws::Utils::Stream::ResponseStream > &&result)
AWS_CLOUDFRONT_API GetFunction2020_05_31Result(GetFunction2020_05_31Result &&)=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