/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/lambda/Lambda_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <aws/lambda/model/FunctionUrlAuthType.h> #include <aws/lambda/model/Cors.h> #include <aws/lambda/model/InvokeMode.h> #include <utility> namespace Aws { template<typename RESULT_TYPE> class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace Lambda { namespace Model { class CreateFunctionUrlConfigResult { public: AWS_LAMBDA_API CreateFunctionUrlConfigResult(); AWS_LAMBDA_API CreateFunctionUrlConfigResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); AWS_LAMBDA_API CreateFunctionUrlConfigResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result); /** * <p>The HTTP URL endpoint for your function.</p> */ inline const Aws::String& GetFunctionUrl() const{ return m_functionUrl; } /** * <p>The HTTP URL endpoint for your function.</p> */ inline void SetFunctionUrl(const Aws::String& value) { m_functionUrl = value; } /** * <p>The HTTP URL endpoint for your function.</p> */ inline void SetFunctionUrl(Aws::String&& value) { m_functionUrl = std::move(value); } /** * <p>The HTTP URL endpoint for your function.</p> */ inline void SetFunctionUrl(const char* value) { m_functionUrl.assign(value); } /** * <p>The HTTP URL endpoint for your function.</p> */ inline CreateFunctionUrlConfigResult& WithFunctionUrl(const Aws::String& value) { SetFunctionUrl(value); return *this;} /** * <p>The HTTP URL endpoint for your function.</p> */ inline CreateFunctionUrlConfigResult& WithFunctionUrl(Aws::String&& value) { SetFunctionUrl(std::move(value)); return *this;} /** * <p>The HTTP URL endpoint for your function.</p> */ inline CreateFunctionUrlConfigResult& WithFunctionUrl(const char* value) { SetFunctionUrl(value); return *this;} /** * <p>The Amazon Resource Name (ARN) of your function.</p> */ inline const Aws::String& GetFunctionArn() const{ return m_functionArn; } /** * <p>The Amazon Resource Name (ARN) of your function.</p> */ inline void SetFunctionArn(const Aws::String& value) { m_functionArn = value; } /** * <p>The Amazon Resource Name (ARN) of your function.</p> */ inline void SetFunctionArn(Aws::String&& value) { m_functionArn = std::move(value); } /** * <p>The Amazon Resource Name (ARN) of your function.</p> */ inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); } /** * <p>The Amazon Resource Name (ARN) of your function.</p> */ inline CreateFunctionUrlConfigResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;} /** * <p>The Amazon Resource Name (ARN) of your function.</p> */ inline CreateFunctionUrlConfigResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;} /** * <p>The Amazon Resource Name (ARN) of your function.</p> */ inline CreateFunctionUrlConfigResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;} /** * <p>The type of authentication that your function URL uses. Set to * <code>AWS_IAM</code> if you want to restrict access to authenticated users only. * Set to <code>NONE</code> if you want to bypass IAM authentication to create a * public endpoint. For more information, see <a * href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and * auth model for Lambda function URLs</a>.</p> */ inline const FunctionUrlAuthType& GetAuthType() const{ return m_authType; } /** * <p>The type of authentication that your function URL uses. Set to * <code>AWS_IAM</code> if you want to restrict access to authenticated users only. * Set to <code>NONE</code> if you want to bypass IAM authentication to create a * public endpoint. For more information, see <a * href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and * auth model for Lambda function URLs</a>.</p> */ inline void SetAuthType(const FunctionUrlAuthType& value) { m_authType = value; } /** * <p>The type of authentication that your function URL uses. Set to * <code>AWS_IAM</code> if you want to restrict access to authenticated users only. * Set to <code>NONE</code> if you want to bypass IAM authentication to create a * public endpoint. For more information, see <a * href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and * auth model for Lambda function URLs</a>.</p> */ inline void SetAuthType(FunctionUrlAuthType&& value) { m_authType = std::move(value); } /** * <p>The type of authentication that your function URL uses. Set to * <code>AWS_IAM</code> if you want to restrict access to authenticated users only. * Set to <code>NONE</code> if you want to bypass IAM authentication to create a * public endpoint. For more information, see <a * href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and * auth model for Lambda function URLs</a>.</p> */ inline CreateFunctionUrlConfigResult& WithAuthType(const FunctionUrlAuthType& value) { SetAuthType(value); return *this;} /** * <p>The type of authentication that your function URL uses. Set to * <code>AWS_IAM</code> if you want to restrict access to authenticated users only. * Set to <code>NONE</code> if you want to bypass IAM authentication to create a * public endpoint. For more information, see <a * href="https://docs.aws.amazon.com/lambda/latest/dg/urls-auth.html">Security and * auth model for Lambda function URLs</a>.</p> */ inline CreateFunctionUrlConfigResult& WithAuthType(FunctionUrlAuthType&& value) { SetAuthType(std::move(value)); return *this;} /** * <p>The <a * href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin * resource sharing (CORS)</a> settings for your function URL.</p> */ inline const Cors& GetCors() const{ return m_cors; } /** * <p>The <a * href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin * resource sharing (CORS)</a> settings for your function URL.</p> */ inline void SetCors(const Cors& value) { m_cors = value; } /** * <p>The <a * href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin * resource sharing (CORS)</a> settings for your function URL.</p> */ inline void SetCors(Cors&& value) { m_cors = std::move(value); } /** * <p>The <a * href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin * resource sharing (CORS)</a> settings for your function URL.</p> */ inline CreateFunctionUrlConfigResult& WithCors(const Cors& value) { SetCors(value); return *this;} /** * <p>The <a * href="https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS">cross-origin * resource sharing (CORS)</a> settings for your function URL.</p> */ inline CreateFunctionUrlConfigResult& WithCors(Cors&& value) { SetCors(std::move(value)); return *this;} /** * <p>When the function URL was created, in <a * href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> * (YYYY-MM-DDThh:mm:ss.sTZD).</p> */ inline const Aws::String& GetCreationTime() const{ return m_creationTime; } /** * <p>When the function URL was created, in <a * href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> * (YYYY-MM-DDThh:mm:ss.sTZD).</p> */ inline void SetCreationTime(const Aws::String& value) { m_creationTime = value; } /** * <p>When the function URL was created, in <a * href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> * (YYYY-MM-DDThh:mm:ss.sTZD).</p> */ inline void SetCreationTime(Aws::String&& value) { m_creationTime = std::move(value); } /** * <p>When the function URL was created, in <a * href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> * (YYYY-MM-DDThh:mm:ss.sTZD).</p> */ inline void SetCreationTime(const char* value) { m_creationTime.assign(value); } /** * <p>When the function URL was created, in <a * href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> * (YYYY-MM-DDThh:mm:ss.sTZD).</p> */ inline CreateFunctionUrlConfigResult& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} /** * <p>When the function URL was created, in <a * href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> * (YYYY-MM-DDThh:mm:ss.sTZD).</p> */ inline CreateFunctionUrlConfigResult& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} /** * <p>When the function URL was created, in <a * href="https://www.w3.org/TR/NOTE-datetime">ISO-8601 format</a> * (YYYY-MM-DDThh:mm:ss.sTZD).</p> */ inline CreateFunctionUrlConfigResult& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} /** * <p>Use one of the following options:</p> <ul> <li> <p> <code>BUFFERED</code> – * This is the default option. Lambda invokes your function using the * <code>Invoke</code> API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.</p> </li> <li> <p> * <code>RESPONSE_STREAM</code> – Your function streams payload results as they * become available. Lambda invokes your function using the * <code>InvokeWithResponseStream</code> API operation. The maximum response * payload size is 20 MB, however, you can <a * href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request * a quota increase</a>.</p> </li> </ul> */ inline const InvokeMode& GetInvokeMode() const{ return m_invokeMode; } /** * <p>Use one of the following options:</p> <ul> <li> <p> <code>BUFFERED</code> – * This is the default option. Lambda invokes your function using the * <code>Invoke</code> API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.</p> </li> <li> <p> * <code>RESPONSE_STREAM</code> – Your function streams payload results as they * become available. Lambda invokes your function using the * <code>InvokeWithResponseStream</code> API operation. The maximum response * payload size is 20 MB, however, you can <a * href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request * a quota increase</a>.</p> </li> </ul> */ inline void SetInvokeMode(const InvokeMode& value) { m_invokeMode = value; } /** * <p>Use one of the following options:</p> <ul> <li> <p> <code>BUFFERED</code> – * This is the default option. Lambda invokes your function using the * <code>Invoke</code> API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.</p> </li> <li> <p> * <code>RESPONSE_STREAM</code> – Your function streams payload results as they * become available. Lambda invokes your function using the * <code>InvokeWithResponseStream</code> API operation. The maximum response * payload size is 20 MB, however, you can <a * href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request * a quota increase</a>.</p> </li> </ul> */ inline void SetInvokeMode(InvokeMode&& value) { m_invokeMode = std::move(value); } /** * <p>Use one of the following options:</p> <ul> <li> <p> <code>BUFFERED</code> – * This is the default option. Lambda invokes your function using the * <code>Invoke</code> API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.</p> </li> <li> <p> * <code>RESPONSE_STREAM</code> – Your function streams payload results as they * become available. Lambda invokes your function using the * <code>InvokeWithResponseStream</code> API operation. The maximum response * payload size is 20 MB, however, you can <a * href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request * a quota increase</a>.</p> </li> </ul> */ inline CreateFunctionUrlConfigResult& WithInvokeMode(const InvokeMode& value) { SetInvokeMode(value); return *this;} /** * <p>Use one of the following options:</p> <ul> <li> <p> <code>BUFFERED</code> – * This is the default option. Lambda invokes your function using the * <code>Invoke</code> API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.</p> </li> <li> <p> * <code>RESPONSE_STREAM</code> – Your function streams payload results as they * become available. Lambda invokes your function using the * <code>InvokeWithResponseStream</code> API operation. The maximum response * payload size is 20 MB, however, you can <a * href="https://docs.aws.amazon.com/servicequotas/latest/userguide/request-quota-increase.html">request * a quota increase</a>.</p> </li> </ul> */ inline CreateFunctionUrlConfigResult& WithInvokeMode(InvokeMode&& value) { SetInvokeMode(std::move(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 CreateFunctionUrlConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateFunctionUrlConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateFunctionUrlConfigResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_functionUrl; Aws::String m_functionArn; FunctionUrlAuthType m_authType; Cors m_cors; Aws::String m_creationTime; InvokeMode m_invokeMode; Aws::String m_requestId; }; } // namespace Model } // namespace Lambda } // namespace Aws