AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
GetFunction2020_05_31Result.h
1
6#pragma once
7#include <aws/cloudfront/CloudFront_EXPORTS.h>
8#include <aws/core/utils/stream/ResponseStream.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace CloudFront
19{
20namespace Model
21{
23 {
24 public:
25 AWS_CLOUDFRONT_API GetFunction2020_05_31Result() = default;
28 //we delete these because Microsoft doesn't handle move generation correctly
29 //and we therefore don't trust them to get it right here either.
32
33
36
37
38
40
43 inline Aws::IOStream& GetFunctionCode() const { return m_functionCode.GetUnderlyingStream(); }
44 inline void ReplaceBody(Aws::IOStream* body) { m_functionCode = Aws::Utils::Stream::ResponseStream(body); }
45
47
49
53 inline const Aws::String& GetETag() const { return m_eTag; }
54 template<typename ETagT = Aws::String>
55 void SetETag(ETagT&& value) { m_eTagHasBeenSet = true; m_eTag = std::forward<ETagT>(value); }
56 template<typename ETagT = Aws::String>
57 GetFunction2020_05_31Result& WithETag(ETagT&& value) { SetETag(std::forward<ETagT>(value)); return *this;}
59
61
64 inline const Aws::String& GetContentType() const { return m_contentType; }
65 template<typename ContentTypeT = Aws::String>
66 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
67 template<typename ContentTypeT = Aws::String>
68 GetFunction2020_05_31Result& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
70
72
73 inline const Aws::String& GetRequestId() const { return m_requestId; }
74 template<typename RequestIdT = Aws::String>
75 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
76 template<typename RequestIdT = Aws::String>
77 GetFunction2020_05_31Result& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
79 private:
80
82 bool m_functionCodeHasBeenSet = false;
83
84 Aws::String m_eTag;
85 bool m_eTagHasBeenSet = false;
86
87 Aws::String m_contentType;
88 bool m_contentTypeHasBeenSet = false;
89
90 Aws::String m_requestId;
91 bool m_requestIdHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace CloudFront
96} // 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