/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.lambda.model; import java.io.Serializable; import javax.annotation.Generated; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateFunctionUrlConfigResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable { /** *

* The HTTP URL endpoint for your function. *

*/ private String functionUrl; /** *

* The Amazon Resource Name (ARN) of your function. *

*/ private String functionArn; /** *

* 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. *

*/ private String authType; /** *

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

*/ private Cors cors; /** *

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

*/ private String creationTime; /** *

* Use one of the following options: *

* */ private String invokeMode; /** *

* The HTTP URL endpoint for your function. *

* * @param functionUrl * The HTTP URL endpoint for your function. */ public void setFunctionUrl(String functionUrl) { this.functionUrl = functionUrl; } /** *

* The HTTP URL endpoint for your function. *

* * @return The HTTP URL endpoint for your function. */ public String getFunctionUrl() { return this.functionUrl; } /** *

* The HTTP URL endpoint for your function. *

* * @param functionUrl * The HTTP URL endpoint for your function. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFunctionUrlConfigResult withFunctionUrl(String functionUrl) { setFunctionUrl(functionUrl); return this; } /** *

* The Amazon Resource Name (ARN) of your function. *

* * @param functionArn * The Amazon Resource Name (ARN) of your function. */ public void setFunctionArn(String functionArn) { this.functionArn = functionArn; } /** *

* The Amazon Resource Name (ARN) of your function. *

* * @return The Amazon Resource Name (ARN) of your function. */ public String getFunctionArn() { return this.functionArn; } /** *

* The Amazon Resource Name (ARN) of your function. *

* * @param functionArn * The Amazon Resource Name (ARN) of your function. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFunctionUrlConfigResult withFunctionArn(String functionArn) { setFunctionArn(functionArn); 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. *

* * @param 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. * @see FunctionUrlAuthType */ public void setAuthType(String authType) { this.authType = 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. *

* * @return 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. * @see FunctionUrlAuthType */ public String getAuthType() { return this.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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see FunctionUrlAuthType */ public CreateFunctionUrlConfigResult withAuthType(String authType) { setAuthType(authType); 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. *

* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. * @see FunctionUrlAuthType */ public CreateFunctionUrlConfigResult withAuthType(FunctionUrlAuthType authType) { this.authType = authType.toString(); return this; } /** *

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

* * @param cors * The cross-origin resource sharing * (CORS) settings for your function URL. */ public void setCors(Cors cors) { this.cors = cors; } /** *

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

* * @return The cross-origin resource sharing * (CORS) settings for your function URL. */ public Cors getCors() { return this.cors; } /** *

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

* * @param cors * The cross-origin resource sharing * (CORS) settings for your function URL. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFunctionUrlConfigResult withCors(Cors cors) { setCors(cors); return this; } /** *

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

* * @param creationTime * When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD). */ public void setCreationTime(String creationTime) { this.creationTime = creationTime; } /** *

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

* * @return When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD). */ public String getCreationTime() { return this.creationTime; } /** *

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

* * @param creationTime * When the function URL was created, in ISO-8601 format * (YYYY-MM-DDThh:mm:ss.sTZD). * @return Returns a reference to this object so that method calls can be chained together. */ public CreateFunctionUrlConfigResult withCreationTime(String creationTime) { setCreationTime(creationTime); return this; } /** *

* Use one of the following options: *

* * * @param invokeMode * Use one of the following options:

*