/* * 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.glue.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A structure used to create or update a user-defined function. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class UserDefinedFunctionInput implements Serializable, Cloneable, StructuredPojo { /** ** The name of the function. *
*/ private String functionName; /** ** The Java class that contains the function code. *
*/ private String className; /** ** The owner of the function. *
*/ private String ownerName; /** ** The owner type. *
*/ private String ownerType; /** ** The resource URIs for the function. *
*/ private java.util.List* The name of the function. *
* * @param functionName * The name of the function. */ public void setFunctionName(String functionName) { this.functionName = functionName; } /** ** The name of the function. *
* * @return The name of the function. */ public String getFunctionName() { return this.functionName; } /** ** The name of the function. *
* * @param functionName * The name of the function. * @return Returns a reference to this object so that method calls can be chained together. */ public UserDefinedFunctionInput withFunctionName(String functionName) { setFunctionName(functionName); return this; } /** ** The Java class that contains the function code. *
* * @param className * The Java class that contains the function code. */ public void setClassName(String className) { this.className = className; } /** ** The Java class that contains the function code. *
* * @return The Java class that contains the function code. */ public String getClassName() { return this.className; } /** ** The Java class that contains the function code. *
* * @param className * The Java class that contains the function code. * @return Returns a reference to this object so that method calls can be chained together. */ public UserDefinedFunctionInput withClassName(String className) { setClassName(className); return this; } /** ** The owner of the function. *
* * @param ownerName * The owner of the function. */ public void setOwnerName(String ownerName) { this.ownerName = ownerName; } /** ** The owner of the function. *
* * @return The owner of the function. */ public String getOwnerName() { return this.ownerName; } /** ** The owner of the function. *
* * @param ownerName * The owner of the function. * @return Returns a reference to this object so that method calls can be chained together. */ public UserDefinedFunctionInput withOwnerName(String ownerName) { setOwnerName(ownerName); return this; } /** ** The owner type. *
* * @param ownerType * The owner type. * @see PrincipalType */ public void setOwnerType(String ownerType) { this.ownerType = ownerType; } /** ** The owner type. *
* * @return The owner type. * @see PrincipalType */ public String getOwnerType() { return this.ownerType; } /** ** The owner type. *
* * @param ownerType * The owner type. * @return Returns a reference to this object so that method calls can be chained together. * @see PrincipalType */ public UserDefinedFunctionInput withOwnerType(String ownerType) { setOwnerType(ownerType); return this; } /** ** The owner type. *
* * @param ownerType * The owner type. * @return Returns a reference to this object so that method calls can be chained together. * @see PrincipalType */ public UserDefinedFunctionInput withOwnerType(PrincipalType ownerType) { this.ownerType = ownerType.toString(); return this; } /** ** The resource URIs for the function. *
* * @return The resource URIs for the function. */ public java.util.List* The resource URIs for the function. *
* * @param resourceUris * The resource URIs for the function. */ public void setResourceUris(java.util.Collection* The resource URIs for the function. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setResourceUris(java.util.Collection)} or {@link #withResourceUris(java.util.Collection)} if you want to * override the existing values. *
* * @param resourceUris * The resource URIs for the function. * @return Returns a reference to this object so that method calls can be chained together. */ public UserDefinedFunctionInput withResourceUris(ResourceUri... resourceUris) { if (this.resourceUris == null) { setResourceUris(new java.util.ArrayList* The resource URIs for the function. *
* * @param resourceUris * The resource URIs for the function. * @return Returns a reference to this object so that method calls can be chained together. */ public UserDefinedFunctionInput withResourceUris(java.util.Collection