/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace CloudFront { namespace Model { class GetFunction2020_05_31Result { public: AWS_CLOUDFRONT_API GetFunction2020_05_31Result(); //We have to define these because Microsoft doesn't auto generate them AWS_CLOUDFRONT_API GetFunction2020_05_31Result(GetFunction2020_05_31Result&&); AWS_CLOUDFRONT_API GetFunction2020_05_31Result& operator=(GetFunction2020_05_31Result&&); //we delete these because Microsoft doesn't handle move generation correctly //and we therefore don't trust them to get it right here either. 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&& result); AWS_CLOUDFRONT_API GetFunction2020_05_31Result& operator=(Aws::AmazonWebServiceResult&& result); /** *

The function code of a CloudFront function.

*/ inline Aws::IOStream& GetFunctionCode() const { return m_functionCode.GetUnderlyingStream(); } /** *

The function code of a CloudFront function.

*/ inline void ReplaceBody(Aws::IOStream* body) { m_functionCode = Aws::Utils::Stream::ResponseStream(body); } /** *

The version identifier for the current version of the CloudFront * function.

*/ inline const Aws::String& GetETag() const{ return m_eTag; } /** *

The version identifier for the current version of the CloudFront * function.

*/ inline void SetETag(const Aws::String& value) { m_eTag = value; } /** *

The version identifier for the current version of the CloudFront * function.

*/ inline void SetETag(Aws::String&& value) { m_eTag = std::move(value); } /** *

The version identifier for the current version of the CloudFront * function.

*/ inline void SetETag(const char* value) { m_eTag.assign(value); } /** *

The version identifier for the current version of the CloudFront * function.

*/ inline GetFunction2020_05_31Result& WithETag(const Aws::String& value) { SetETag(value); return *this;} /** *

The version identifier for the current version of the CloudFront * function.

*/ inline GetFunction2020_05_31Result& WithETag(Aws::String&& value) { SetETag(std::move(value)); return *this;} /** *

The version identifier for the current version of the CloudFront * function.

*/ inline GetFunction2020_05_31Result& WithETag(const char* value) { SetETag(value); return *this;} /** *

The content type (media type) of the response.

*/ inline const Aws::String& GetContentType() const{ return m_contentType; } /** *

The content type (media type) of the response.

*/ inline void SetContentType(const Aws::String& value) { m_contentType = value; } /** *

The content type (media type) of the response.

*/ inline void SetContentType(Aws::String&& value) { m_contentType = std::move(value); } /** *

The content type (media type) of the response.

*/ inline void SetContentType(const char* value) { m_contentType.assign(value); } /** *

The content type (media type) of the response.

*/ inline GetFunction2020_05_31Result& WithContentType(const Aws::String& value) { SetContentType(value); return *this;} /** *

The content type (media type) of the response.

*/ inline GetFunction2020_05_31Result& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;} /** *

The content type (media type) of the response.

*/ inline GetFunction2020_05_31Result& WithContentType(const char* value) { SetContentType(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetFunction2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetFunction2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetFunction2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Utils::Stream::ResponseStream m_functionCode; Aws::String m_eTag; Aws::String m_contentType; Aws::String m_requestId; }; } // namespace Model } // namespace CloudFront } // namespace Aws