/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace CloudFront { namespace Model { class CreateFunction2020_05_31Result { public: AWS_CLOUDFRONT_API CreateFunction2020_05_31Result(); AWS_CLOUDFRONT_API CreateFunction2020_05_31Result(const Aws::AmazonWebServiceResult& result); AWS_CLOUDFRONT_API CreateFunction2020_05_31Result& operator=(const Aws::AmazonWebServiceResult& result); /** *

Contains configuration information and metadata about a CloudFront * function.

*/ inline const FunctionSummary& GetFunctionSummary() const{ return m_functionSummary; } /** *

Contains configuration information and metadata about a CloudFront * function.

*/ inline void SetFunctionSummary(const FunctionSummary& value) { m_functionSummary = value; } /** *

Contains configuration information and metadata about a CloudFront * function.

*/ inline void SetFunctionSummary(FunctionSummary&& value) { m_functionSummary = std::move(value); } /** *

Contains configuration information and metadata about a CloudFront * function.

*/ inline CreateFunction2020_05_31Result& WithFunctionSummary(const FunctionSummary& value) { SetFunctionSummary(value); return *this;} /** *

Contains configuration information and metadata about a CloudFront * function.

*/ inline CreateFunction2020_05_31Result& WithFunctionSummary(FunctionSummary&& value) { SetFunctionSummary(std::move(value)); return *this;} /** *

The URL of the CloudFront function. Use the URL to manage the function with * the CloudFront API.

*/ inline const Aws::String& GetLocation() const{ return m_location; } /** *

The URL of the CloudFront function. Use the URL to manage the function with * the CloudFront API.

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

The URL of the CloudFront function. Use the URL to manage the function with * the CloudFront API.

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

The URL of the CloudFront function. Use the URL to manage the function with * the CloudFront API.

*/ inline void SetLocation(const char* value) { m_location.assign(value); } /** *

The URL of the CloudFront function. Use the URL to manage the function with * the CloudFront API.

*/ inline CreateFunction2020_05_31Result& WithLocation(const Aws::String& value) { SetLocation(value); return *this;} /** *

The URL of the CloudFront function. Use the URL to manage the function with * the CloudFront API.

*/ inline CreateFunction2020_05_31Result& WithLocation(Aws::String&& value) { SetLocation(std::move(value)); return *this;} /** *

The URL of the CloudFront function. Use the URL to manage the function with * the CloudFront API.

*/ inline CreateFunction2020_05_31Result& WithLocation(const char* value) { SetLocation(value); return *this;} /** *

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 CreateFunction2020_05_31Result& WithETag(const Aws::String& value) { SetETag(value); return *this;} /** *

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

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

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

*/ inline CreateFunction2020_05_31Result& WithETag(const char* value) { SetETag(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 CreateFunction2020_05_31Result& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateFunction2020_05_31Result& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateFunction2020_05_31Result& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: FunctionSummary m_functionSummary; Aws::String m_location; Aws::String m_eTag; Aws::String m_requestId; }; } // namespace Model } // namespace CloudFront } // namespace Aws