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

The HTTP URL endpoint for your function.

*/ inline const Aws::String& GetFunctionUrl() const{ return m_functionUrl; } /** *

The HTTP URL endpoint for your function.

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

The HTTP URL endpoint for your function.

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

The HTTP URL endpoint for your function.

*/ inline void SetFunctionUrl(const char* value) { m_functionUrl.assign(value); } /** *

The HTTP URL endpoint for your function.

*/ inline UpdateFunctionUrlConfigResult& WithFunctionUrl(const Aws::String& value) { SetFunctionUrl(value); return *this;} /** *

The HTTP URL endpoint for your function.

*/ inline UpdateFunctionUrlConfigResult& WithFunctionUrl(Aws::String&& value) { SetFunctionUrl(std::move(value)); return *this;} /** *

The HTTP URL endpoint for your function.

*/ inline UpdateFunctionUrlConfigResult& WithFunctionUrl(const char* value) { SetFunctionUrl(value); return *this;} /** *

The Amazon Resource Name (ARN) of your function.

*/ inline const Aws::String& GetFunctionArn() const{ return m_functionArn; } /** *

The Amazon Resource Name (ARN) of your function.

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

The Amazon Resource Name (ARN) of your function.

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

The Amazon Resource Name (ARN) of your function.

*/ inline void SetFunctionArn(const char* value) { m_functionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of your function.

*/ inline UpdateFunctionUrlConfigResult& WithFunctionArn(const Aws::String& value) { SetFunctionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of your function.

*/ inline UpdateFunctionUrlConfigResult& WithFunctionArn(Aws::String&& value) { SetFunctionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of your function.

*/ inline UpdateFunctionUrlConfigResult& WithFunctionArn(const char* value) { SetFunctionArn(value); return *this;} /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline const FunctionUrlAuthType& GetAuthType() const{ return m_authType; } /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline void SetAuthType(const FunctionUrlAuthType& value) { m_authType = value; } /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline void SetAuthType(FunctionUrlAuthType&& value) { m_authType = std::move(value); } /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline UpdateFunctionUrlConfigResult& WithAuthType(const FunctionUrlAuthType& value) { SetAuthType(value); return *this;} /** *

The type of authentication that your function URL uses. Set to * AWS_IAM if you want to restrict access to authenticated users only. * Set to NONE if you want to bypass IAM authentication to create a * public endpoint. For more information, see Security and * auth model for Lambda function URLs.

*/ inline UpdateFunctionUrlConfigResult& WithAuthType(FunctionUrlAuthType&& value) { SetAuthType(std::move(value)); return *this;} /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline const Cors& GetCors() const{ return m_cors; } /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline void SetCors(const Cors& value) { m_cors = value; } /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline void SetCors(Cors&& value) { m_cors = std::move(value); } /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline UpdateFunctionUrlConfigResult& WithCors(const Cors& value) { SetCors(value); return *this;} /** *

The cross-origin * resource sharing (CORS) settings for your function URL.

*/ inline UpdateFunctionUrlConfigResult& WithCors(Cors&& value) { SetCors(std::move(value)); return *this;} /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline const Aws::String& GetCreationTime() const{ return m_creationTime; } /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

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

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

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

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline void SetCreationTime(const char* value) { m_creationTime.assign(value); } /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline UpdateFunctionUrlConfigResult& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline UpdateFunctionUrlConfigResult& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} /** *

When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline UpdateFunctionUrlConfigResult& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline const Aws::String& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

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

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

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

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline void SetLastModifiedTime(const char* value) { m_lastModifiedTime.assign(value); } /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline UpdateFunctionUrlConfigResult& WithLastModifiedTime(const Aws::String& value) { SetLastModifiedTime(value); return *this;} /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline UpdateFunctionUrlConfigResult& WithLastModifiedTime(Aws::String&& value) { SetLastModifiedTime(std::move(value)); return *this;} /** *

When the function URL configuration was last updated, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD).

*/ inline UpdateFunctionUrlConfigResult& WithLastModifiedTime(const char* value) { SetLastModifiedTime(value); return *this;} /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline const InvokeMode& GetInvokeMode() const{ return m_invokeMode; } /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline void SetInvokeMode(const InvokeMode& value) { m_invokeMode = value; } /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline void SetInvokeMode(InvokeMode&& value) { m_invokeMode = std::move(value); } /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline UpdateFunctionUrlConfigResult& WithInvokeMode(const InvokeMode& value) { SetInvokeMode(value); return *this;} /** *

Use one of the following options:

  • BUFFERED – * This is the default option. Lambda invokes your function using the * Invoke API operation. Invocation results are available when the * payload is complete. The maximum payload size is 6 MB.

  • * RESPONSE_STREAM – Your function streams payload results as they * become available. Lambda invokes your function using the * InvokeWithResponseStream API operation. The maximum response * payload size is 20 MB, however, you can request * a quota increase.

*/ inline UpdateFunctionUrlConfigResult& 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 UpdateFunctionUrlConfigResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpdateFunctionUrlConfigResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpdateFunctionUrlConfigResult& 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; Aws::String m_lastModifiedTime; InvokeMode m_invokeMode; Aws::String m_requestId; }; } // namespace Model } // namespace Lambda } // namespace Aws