All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awssdk.services.glue.model.DevEndpointCustomLibraries Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS Glue module holds the client classes that are used for communicating with AWS Glue Service

There is a newer version: 2.29.39
Show newest version
/*
 * Copyright 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 software.amazon.awssdk.services.glue.model;

import java.io.Serializable;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.function.BiConsumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.core.SdkField;
import software.amazon.awssdk.core.SdkPojo;
import software.amazon.awssdk.core.protocol.MarshallLocation;
import software.amazon.awssdk.core.protocol.MarshallingType;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;

/**
 * 

* Custom libraries to be loaded into a development endpoint. *

*/ @Generated("software.amazon.awssdk:codegen") public final class DevEndpointCustomLibraries implements SdkPojo, Serializable, ToCopyableBuilder { private static final SdkField EXTRA_PYTHON_LIBS_S3_PATH_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ExtraPythonLibsS3Path").getter(getter(DevEndpointCustomLibraries::extraPythonLibsS3Path)) .setter(setter(Builder::extraPythonLibsS3Path)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExtraPythonLibsS3Path").build()) .build(); private static final SdkField EXTRA_JARS_S3_PATH_FIELD = SdkField. builder(MarshallingType.STRING) .memberName("ExtraJarsS3Path").getter(getter(DevEndpointCustomLibraries::extraJarsS3Path)) .setter(setter(Builder::extraJarsS3Path)) .traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ExtraJarsS3Path").build()).build(); private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList( EXTRA_PYTHON_LIBS_S3_PATH_FIELD, EXTRA_JARS_S3_PATH_FIELD)); private static final Map> SDK_NAME_TO_FIELD = memberNameToFieldInitializer(); private static final long serialVersionUID = 1L; private final String extraPythonLibsS3Path; private final String extraJarsS3Path; private DevEndpointCustomLibraries(BuilderImpl builder) { this.extraPythonLibsS3Path = builder.extraPythonLibsS3Path; this.extraJarsS3Path = builder.extraJarsS3Path; } /** *

* The paths to one or more Python libraries in an Amazon Simple Storage Service (Amazon S3) bucket that should be * loaded in your DevEndpoint. Multiple values must be complete paths separated by a comma. *

* *

* You can only use pure Python libraries with a DevEndpoint. Libraries that rely on C extensions, such * as the pandas Python data analysis library, are not currently supported. *

*
* * @return The paths to one or more Python libraries in an Amazon Simple Storage Service (Amazon S3) bucket that * should be loaded in your DevEndpoint. Multiple values must be complete paths separated by a * comma.

*

* You can only use pure Python libraries with a DevEndpoint. Libraries that rely on C * extensions, such as the pandas Python data analysis library, are * not currently supported. *

*/ public final String extraPythonLibsS3Path() { return extraPythonLibsS3Path; } /** *

* The path to one or more Java .jar files in an S3 bucket that should be loaded in your * DevEndpoint. *

* *

* You can only use pure Java/Scala libraries with a DevEndpoint. *

*
* * @return The path to one or more Java .jar files in an S3 bucket that should be loaded in your * DevEndpoint.

*

* You can only use pure Java/Scala libraries with a DevEndpoint. *

*/ public final String extraJarsS3Path() { return extraJarsS3Path; } @Override public Builder toBuilder() { return new BuilderImpl(this); } public static Builder builder() { return new BuilderImpl(); } public static Class serializableBuilderClass() { return BuilderImpl.class; } @Override public final int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(extraPythonLibsS3Path()); hashCode = 31 * hashCode + Objects.hashCode(extraJarsS3Path()); return hashCode; } @Override public final boolean equals(Object obj) { return equalsBySdkFields(obj); } @Override public final boolean equalsBySdkFields(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof DevEndpointCustomLibraries)) { return false; } DevEndpointCustomLibraries other = (DevEndpointCustomLibraries) obj; return Objects.equals(extraPythonLibsS3Path(), other.extraPythonLibsS3Path()) && Objects.equals(extraJarsS3Path(), other.extraJarsS3Path()); } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. */ @Override public final String toString() { return ToString.builder("DevEndpointCustomLibraries").add("ExtraPythonLibsS3Path", extraPythonLibsS3Path()) .add("ExtraJarsS3Path", extraJarsS3Path()).build(); } public final Optional getValueForField(String fieldName, Class clazz) { switch (fieldName) { case "ExtraPythonLibsS3Path": return Optional.ofNullable(clazz.cast(extraPythonLibsS3Path())); case "ExtraJarsS3Path": return Optional.ofNullable(clazz.cast(extraJarsS3Path())); default: return Optional.empty(); } } @Override public final List> sdkFields() { return SDK_FIELDS; } @Override public final Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } private static Map> memberNameToFieldInitializer() { Map> map = new HashMap<>(); map.put("ExtraPythonLibsS3Path", EXTRA_PYTHON_LIBS_S3_PATH_FIELD); map.put("ExtraJarsS3Path", EXTRA_JARS_S3_PATH_FIELD); return Collections.unmodifiableMap(map); } private static Function getter(Function g) { return obj -> g.apply((DevEndpointCustomLibraries) obj); } private static BiConsumer setter(BiConsumer s) { return (obj, val) -> s.accept((Builder) obj, val); } public interface Builder extends SdkPojo, CopyableBuilder { /** *

* The paths to one or more Python libraries in an Amazon Simple Storage Service (Amazon S3) bucket that should * be loaded in your DevEndpoint. Multiple values must be complete paths separated by a comma. *

* *

* You can only use pure Python libraries with a DevEndpoint. Libraries that rely on C extensions, * such as the pandas Python data analysis library, are not currently * supported. *

*
* * @param extraPythonLibsS3Path * The paths to one or more Python libraries in an Amazon Simple Storage Service (Amazon S3) bucket that * should be loaded in your DevEndpoint. Multiple values must be complete paths separated by * a comma.

*

* You can only use pure Python libraries with a DevEndpoint. Libraries that rely on C * extensions, such as the pandas Python data analysis library, * are not currently supported. *

* @return Returns a reference to this object so that method calls can be chained together. */ Builder extraPythonLibsS3Path(String extraPythonLibsS3Path); /** *

* The path to one or more Java .jar files in an S3 bucket that should be loaded in your * DevEndpoint. *

* *

* You can only use pure Java/Scala libraries with a DevEndpoint. *

*
* * @param extraJarsS3Path * The path to one or more Java .jar files in an S3 bucket that should be loaded in your * DevEndpoint.

*

* You can only use pure Java/Scala libraries with a DevEndpoint. *

* @return Returns a reference to this object so that method calls can be chained together. */ Builder extraJarsS3Path(String extraJarsS3Path); } static final class BuilderImpl implements Builder { private String extraPythonLibsS3Path; private String extraJarsS3Path; private BuilderImpl() { } private BuilderImpl(DevEndpointCustomLibraries model) { extraPythonLibsS3Path(model.extraPythonLibsS3Path); extraJarsS3Path(model.extraJarsS3Path); } public final String getExtraPythonLibsS3Path() { return extraPythonLibsS3Path; } public final void setExtraPythonLibsS3Path(String extraPythonLibsS3Path) { this.extraPythonLibsS3Path = extraPythonLibsS3Path; } @Override public final Builder extraPythonLibsS3Path(String extraPythonLibsS3Path) { this.extraPythonLibsS3Path = extraPythonLibsS3Path; return this; } public final String getExtraJarsS3Path() { return extraJarsS3Path; } public final void setExtraJarsS3Path(String extraJarsS3Path) { this.extraJarsS3Path = extraJarsS3Path; } @Override public final Builder extraJarsS3Path(String extraJarsS3Path) { this.extraJarsS3Path = extraJarsS3Path; return this; } @Override public DevEndpointCustomLibraries build() { return new DevEndpointCustomLibraries(this); } @Override public List> sdkFields() { return SDK_FIELDS; } @Override public Map> sdkFieldNameToField() { return SDK_NAME_TO_FIELD; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy