Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
software.amazon.awssdk.services.appstream.model.CreateApplicationRequest Maven / Gradle / Ivy
Go to download
The AWS Java SDK for Amazon AppStream module holds the client classes that are used for communicating
with Amazon AppStream.
/*
* 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.appstream.model;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
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.Consumer;
import java.util.function.Function;
import software.amazon.awssdk.annotations.Generated;
import software.amazon.awssdk.awscore.AwsRequestOverrideConfiguration;
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.ListTrait;
import software.amazon.awssdk.core.traits.LocationTrait;
import software.amazon.awssdk.core.traits.MapTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructList;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
import software.amazon.awssdk.core.util.SdkAutoConstructList;
import software.amazon.awssdk.core.util.SdkAutoConstructMap;
import software.amazon.awssdk.utils.ToString;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*/
@Generated("software.amazon.awssdk:codegen")
public final class CreateApplicationRequest extends AppStreamRequest implements
ToCopyableBuilder {
private static final SdkField NAME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Name")
.getter(getter(CreateApplicationRequest::name)).setter(setter(Builder::name))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Name").build()).build();
private static final SdkField DISPLAY_NAME_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("DisplayName").getter(getter(CreateApplicationRequest::displayName)).setter(setter(Builder::displayName))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("DisplayName").build()).build();
private static final SdkField DESCRIPTION_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("Description").getter(getter(CreateApplicationRequest::description)).setter(setter(Builder::description))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Description").build()).build();
private static final SdkField ICON_S3_LOCATION_FIELD = SdkField. builder(MarshallingType.SDK_POJO)
.memberName("IconS3Location").getter(getter(CreateApplicationRequest::iconS3Location))
.setter(setter(Builder::iconS3Location)).constructor(S3Location::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("IconS3Location").build()).build();
private static final SdkField LAUNCH_PATH_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("LaunchPath").getter(getter(CreateApplicationRequest::launchPath)).setter(setter(Builder::launchPath))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LaunchPath").build()).build();
private static final SdkField WORKING_DIRECTORY_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("WorkingDirectory").getter(getter(CreateApplicationRequest::workingDirectory))
.setter(setter(Builder::workingDirectory))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("WorkingDirectory").build()).build();
private static final SdkField LAUNCH_PARAMETERS_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("LaunchParameters").getter(getter(CreateApplicationRequest::launchParameters))
.setter(setter(Builder::launchParameters))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LaunchParameters").build()).build();
private static final SdkField> PLATFORMS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("Platforms")
.getter(getter(CreateApplicationRequest::platformsAsStrings))
.setter(setter(Builder::platformsWithStrings))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Platforms").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField> INSTANCE_FAMILIES_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("InstanceFamilies")
.getter(getter(CreateApplicationRequest::instanceFamilies))
.setter(setter(Builder::instanceFamilies))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("InstanceFamilies").build(),
ListTrait
.builder()
.memberLocationName(null)
.memberFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("member").build()).build()).build()).build();
private static final SdkField APP_BLOCK_ARN_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("AppBlockArn").getter(getter(CreateApplicationRequest::appBlockArn)).setter(setter(Builder::appBlockArn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("AppBlockArn").build()).build();
private static final SdkField> TAGS_FIELD = SdkField
.> builder(MarshallingType.MAP)
.memberName("Tags")
.getter(getter(CreateApplicationRequest::tags))
.setter(setter(Builder::tags))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Tags").build(),
MapTrait.builder()
.keyLocationName("key")
.valueLocationName("value")
.valueFieldInfo(
SdkField. builder(MarshallingType.STRING)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD)
.locationName("value").build()).build()).build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(NAME_FIELD,
DISPLAY_NAME_FIELD, DESCRIPTION_FIELD, ICON_S3_LOCATION_FIELD, LAUNCH_PATH_FIELD, WORKING_DIRECTORY_FIELD,
LAUNCH_PARAMETERS_FIELD, PLATFORMS_FIELD, INSTANCE_FAMILIES_FIELD, APP_BLOCK_ARN_FIELD, TAGS_FIELD));
private final String name;
private final String displayName;
private final String description;
private final S3Location iconS3Location;
private final String launchPath;
private final String workingDirectory;
private final String launchParameters;
private final List platforms;
private final List instanceFamilies;
private final String appBlockArn;
private final Map tags;
private CreateApplicationRequest(BuilderImpl builder) {
super(builder);
this.name = builder.name;
this.displayName = builder.displayName;
this.description = builder.description;
this.iconS3Location = builder.iconS3Location;
this.launchPath = builder.launchPath;
this.workingDirectory = builder.workingDirectory;
this.launchParameters = builder.launchParameters;
this.platforms = builder.platforms;
this.instanceFamilies = builder.instanceFamilies;
this.appBlockArn = builder.appBlockArn;
this.tags = builder.tags;
}
/**
*
* The name of the application. This name is visible to users when display name is not specified.
*
*
* @return The name of the application. This name is visible to users when display name is not specified.
*/
public final String name() {
return name;
}
/**
*
* The display name of the application. This name is visible to users in the application catalog.
*
*
* @return The display name of the application. This name is visible to users in the application catalog.
*/
public final String displayName() {
return displayName;
}
/**
*
* The description of the application.
*
*
* @return The description of the application.
*/
public final String description() {
return description;
}
/**
*
* The location in S3 of the application icon.
*
*
* @return The location in S3 of the application icon.
*/
public final S3Location iconS3Location() {
return iconS3Location;
}
/**
*
* The launch path of the application.
*
*
* @return The launch path of the application.
*/
public final String launchPath() {
return launchPath;
}
/**
*
* The working directory of the application.
*
*
* @return The working directory of the application.
*/
public final String workingDirectory() {
return workingDirectory;
}
/**
*
* The launch parameters of the application.
*
*
* @return The launch parameters of the application.
*/
public final String launchParameters() {
return launchParameters;
}
/**
*
* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasPlatforms} method.
*
*
* @return The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic
* fleets.
*/
public final List platforms() {
return PlatformsCopier.copyStringToEnum(platforms);
}
/**
* For responses, this returns true if the service returned a value for the Platforms property. This DOES NOT check
* that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is
* useful because the SDK will never return a null collection or map, but you may need to differentiate between the
* service returning nothing (or null) and the service returning an empty collection or map. For requests, this
* returns true if a value for the property was specified in the request builder, and false if a value was not
* specified.
*/
public final boolean hasPlatforms() {
return platforms != null && !(platforms instanceof SdkAutoConstructList);
}
/**
*
* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasPlatforms} method.
*
*
* @return The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic
* fleets.
*/
public final List platformsAsStrings() {
return platforms;
}
/**
* For responses, this returns true if the service returned a value for the InstanceFamilies property. This DOES NOT
* check that the value is non-empty (for which, you should check the {@code isEmpty()} method on the property).
* This is useful because the SDK will never return a null collection or map, but you may need to differentiate
* between the service returning nothing (or null) and the service returning an empty collection or map. For
* requests, this returns true if a value for the property was specified in the request builder, and false if a
* value was not specified.
*/
public final boolean hasInstanceFamilies() {
return instanceFamilies != null && !(instanceFamilies instanceof SdkAutoConstructList);
}
/**
*
* The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasInstanceFamilies} method.
*
*
* @return The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4.
*/
public final List instanceFamilies() {
return instanceFamilies;
}
/**
*
* The app block ARN to which the application should be associated
*
*
* @return The app block ARN to which the application should be associated
*/
public final String appBlockArn() {
return appBlockArn;
}
/**
* For responses, this returns true if the service returned a value for the Tags property. This DOES NOT check that
* the value is non-empty (for which, you should check the {@code isEmpty()} method on the property). This is useful
* because the SDK will never return a null collection or map, but you may need to differentiate between the service
* returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
* if a value for the property was specified in the request builder, and false if a value was not specified.
*/
public final boolean hasTags() {
return tags != null && !(tags instanceof SdkAutoConstructMap);
}
/**
*
* The tags assigned to the application.
*
*
* Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
*
*
* This method will never return null. If you would like to know whether the service returned this field (so that
* you can differentiate between null and empty), you can use the {@link #hasTags} method.
*
*
* @return The tags assigned to the application.
*/
public final Map tags() {
return tags;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public final int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + super.hashCode();
hashCode = 31 * hashCode + Objects.hashCode(name());
hashCode = 31 * hashCode + Objects.hashCode(displayName());
hashCode = 31 * hashCode + Objects.hashCode(description());
hashCode = 31 * hashCode + Objects.hashCode(iconS3Location());
hashCode = 31 * hashCode + Objects.hashCode(launchPath());
hashCode = 31 * hashCode + Objects.hashCode(workingDirectory());
hashCode = 31 * hashCode + Objects.hashCode(launchParameters());
hashCode = 31 * hashCode + Objects.hashCode(hasPlatforms() ? platformsAsStrings() : null);
hashCode = 31 * hashCode + Objects.hashCode(hasInstanceFamilies() ? instanceFamilies() : null);
hashCode = 31 * hashCode + Objects.hashCode(appBlockArn());
hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
return hashCode;
}
@Override
public final boolean equals(Object obj) {
return super.equals(obj) && equalsBySdkFields(obj);
}
@Override
public final boolean equalsBySdkFields(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof CreateApplicationRequest)) {
return false;
}
CreateApplicationRequest other = (CreateApplicationRequest) obj;
return Objects.equals(name(), other.name()) && Objects.equals(displayName(), other.displayName())
&& Objects.equals(description(), other.description()) && Objects.equals(iconS3Location(), other.iconS3Location())
&& Objects.equals(launchPath(), other.launchPath())
&& Objects.equals(workingDirectory(), other.workingDirectory())
&& Objects.equals(launchParameters(), other.launchParameters()) && hasPlatforms() == other.hasPlatforms()
&& Objects.equals(platformsAsStrings(), other.platformsAsStrings())
&& hasInstanceFamilies() == other.hasInstanceFamilies()
&& Objects.equals(instanceFamilies(), other.instanceFamilies())
&& Objects.equals(appBlockArn(), other.appBlockArn()) && hasTags() == other.hasTags()
&& Objects.equals(tags(), other.tags());
}
/**
* 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("CreateApplicationRequest").add("Name", name()).add("DisplayName", displayName())
.add("Description", description()).add("IconS3Location", iconS3Location()).add("LaunchPath", launchPath())
.add("WorkingDirectory", workingDirectory()).add("LaunchParameters", launchParameters())
.add("Platforms", hasPlatforms() ? platformsAsStrings() : null)
.add("InstanceFamilies", hasInstanceFamilies() ? instanceFamilies() : null).add("AppBlockArn", appBlockArn())
.add("Tags", hasTags() ? tags() : null).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "Name":
return Optional.ofNullable(clazz.cast(name()));
case "DisplayName":
return Optional.ofNullable(clazz.cast(displayName()));
case "Description":
return Optional.ofNullable(clazz.cast(description()));
case "IconS3Location":
return Optional.ofNullable(clazz.cast(iconS3Location()));
case "LaunchPath":
return Optional.ofNullable(clazz.cast(launchPath()));
case "WorkingDirectory":
return Optional.ofNullable(clazz.cast(workingDirectory()));
case "LaunchParameters":
return Optional.ofNullable(clazz.cast(launchParameters()));
case "Platforms":
return Optional.ofNullable(clazz.cast(platformsAsStrings()));
case "InstanceFamilies":
return Optional.ofNullable(clazz.cast(instanceFamilies()));
case "AppBlockArn":
return Optional.ofNullable(clazz.cast(appBlockArn()));
case "Tags":
return Optional.ofNullable(clazz.cast(tags()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
private static Function getter(Function g) {
return obj -> g.apply((CreateApplicationRequest) obj);
}
private static BiConsumer setter(BiConsumer s) {
return (obj, val) -> s.accept((Builder) obj, val);
}
public interface Builder extends AppStreamRequest.Builder, SdkPojo, CopyableBuilder {
/**
*
* The name of the application. This name is visible to users when display name is not specified.
*
*
* @param name
* The name of the application. This name is visible to users when display name is not specified.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder name(String name);
/**
*
* The display name of the application. This name is visible to users in the application catalog.
*
*
* @param displayName
* The display name of the application. This name is visible to users in the application catalog.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder displayName(String displayName);
/**
*
* The description of the application.
*
*
* @param description
* The description of the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder description(String description);
/**
*
* The location in S3 of the application icon.
*
*
* @param iconS3Location
* The location in S3 of the application icon.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder iconS3Location(S3Location iconS3Location);
/**
*
* The location in S3 of the application icon.
*
* This is a convenience method that creates an instance of the {@link S3Location.Builder} avoiding the need to
* create one manually via {@link S3Location#builder()}.
*
*
* When the {@link Consumer} completes, {@link S3Location.Builder#build()} is called immediately and its result
* is passed to {@link #iconS3Location(S3Location)}.
*
* @param iconS3Location
* a consumer that will call methods on {@link S3Location.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #iconS3Location(S3Location)
*/
default Builder iconS3Location(Consumer iconS3Location) {
return iconS3Location(S3Location.builder().applyMutation(iconS3Location).build());
}
/**
*
* The launch path of the application.
*
*
* @param launchPath
* The launch path of the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder launchPath(String launchPath);
/**
*
* The working directory of the application.
*
*
* @param workingDirectory
* The working directory of the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder workingDirectory(String workingDirectory);
/**
*
* The launch parameters of the application.
*
*
* @param launchParameters
* The launch parameters of the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder launchParameters(String launchParameters);
/**
*
* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic
* fleets.
*
*
* @param platforms
* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for
* Elastic fleets.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder platformsWithStrings(Collection platforms);
/**
*
* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic
* fleets.
*
*
* @param platforms
* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for
* Elastic fleets.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder platformsWithStrings(String... platforms);
/**
*
* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic
* fleets.
*
*
* @param platforms
* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for
* Elastic fleets.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder platforms(Collection platforms);
/**
*
* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic
* fleets.
*
*
* @param platforms
* The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for
* Elastic fleets.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder platforms(PlatformType... platforms);
/**
*
* The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4.
*
*
* @param instanceFamilies
* The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder instanceFamilies(Collection instanceFamilies);
/**
*
* The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4.
*
*
* @param instanceFamilies
* The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder instanceFamilies(String... instanceFamilies);
/**
*
* The app block ARN to which the application should be associated
*
*
* @param appBlockArn
* The app block ARN to which the application should be associated
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder appBlockArn(String appBlockArn);
/**
*
* The tags assigned to the application.
*
*
* @param tags
* The tags assigned to the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tags(Map tags);
@Override
Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
@Override
Builder overrideConfiguration(Consumer builderConsumer);
}
static final class BuilderImpl extends AppStreamRequest.BuilderImpl implements Builder {
private String name;
private String displayName;
private String description;
private S3Location iconS3Location;
private String launchPath;
private String workingDirectory;
private String launchParameters;
private List platforms = DefaultSdkAutoConstructList.getInstance();
private List instanceFamilies = DefaultSdkAutoConstructList.getInstance();
private String appBlockArn;
private Map tags = DefaultSdkAutoConstructMap.getInstance();
private BuilderImpl() {
}
private BuilderImpl(CreateApplicationRequest model) {
super(model);
name(model.name);
displayName(model.displayName);
description(model.description);
iconS3Location(model.iconS3Location);
launchPath(model.launchPath);
workingDirectory(model.workingDirectory);
launchParameters(model.launchParameters);
platformsWithStrings(model.platforms);
instanceFamilies(model.instanceFamilies);
appBlockArn(model.appBlockArn);
tags(model.tags);
}
public final String getName() {
return name;
}
public final void setName(String name) {
this.name = name;
}
@Override
public final Builder name(String name) {
this.name = name;
return this;
}
public final String getDisplayName() {
return displayName;
}
public final void setDisplayName(String displayName) {
this.displayName = displayName;
}
@Override
public final Builder displayName(String displayName) {
this.displayName = displayName;
return this;
}
public final String getDescription() {
return description;
}
public final void setDescription(String description) {
this.description = description;
}
@Override
public final Builder description(String description) {
this.description = description;
return this;
}
public final S3Location.Builder getIconS3Location() {
return iconS3Location != null ? iconS3Location.toBuilder() : null;
}
public final void setIconS3Location(S3Location.BuilderImpl iconS3Location) {
this.iconS3Location = iconS3Location != null ? iconS3Location.build() : null;
}
@Override
public final Builder iconS3Location(S3Location iconS3Location) {
this.iconS3Location = iconS3Location;
return this;
}
public final String getLaunchPath() {
return launchPath;
}
public final void setLaunchPath(String launchPath) {
this.launchPath = launchPath;
}
@Override
public final Builder launchPath(String launchPath) {
this.launchPath = launchPath;
return this;
}
public final String getWorkingDirectory() {
return workingDirectory;
}
public final void setWorkingDirectory(String workingDirectory) {
this.workingDirectory = workingDirectory;
}
@Override
public final Builder workingDirectory(String workingDirectory) {
this.workingDirectory = workingDirectory;
return this;
}
public final String getLaunchParameters() {
return launchParameters;
}
public final void setLaunchParameters(String launchParameters) {
this.launchParameters = launchParameters;
}
@Override
public final Builder launchParameters(String launchParameters) {
this.launchParameters = launchParameters;
return this;
}
public final Collection getPlatforms() {
if (platforms instanceof SdkAutoConstructList) {
return null;
}
return platforms;
}
public final void setPlatforms(Collection platforms) {
this.platforms = PlatformsCopier.copy(platforms);
}
@Override
public final Builder platformsWithStrings(Collection platforms) {
this.platforms = PlatformsCopier.copy(platforms);
return this;
}
@Override
@SafeVarargs
public final Builder platformsWithStrings(String... platforms) {
platformsWithStrings(Arrays.asList(platforms));
return this;
}
@Override
public final Builder platforms(Collection platforms) {
this.platforms = PlatformsCopier.copyEnumToString(platforms);
return this;
}
@Override
@SafeVarargs
public final Builder platforms(PlatformType... platforms) {
platforms(Arrays.asList(platforms));
return this;
}
public final Collection getInstanceFamilies() {
if (instanceFamilies instanceof SdkAutoConstructList) {
return null;
}
return instanceFamilies;
}
public final void setInstanceFamilies(Collection instanceFamilies) {
this.instanceFamilies = StringListCopier.copy(instanceFamilies);
}
@Override
public final Builder instanceFamilies(Collection instanceFamilies) {
this.instanceFamilies = StringListCopier.copy(instanceFamilies);
return this;
}
@Override
@SafeVarargs
public final Builder instanceFamilies(String... instanceFamilies) {
instanceFamilies(Arrays.asList(instanceFamilies));
return this;
}
public final String getAppBlockArn() {
return appBlockArn;
}
public final void setAppBlockArn(String appBlockArn) {
this.appBlockArn = appBlockArn;
}
@Override
public final Builder appBlockArn(String appBlockArn) {
this.appBlockArn = appBlockArn;
return this;
}
public final Map getTags() {
if (tags instanceof SdkAutoConstructMap) {
return null;
}
return tags;
}
public final void setTags(Map tags) {
this.tags = TagsCopier.copy(tags);
}
@Override
public final Builder tags(Map tags) {
this.tags = TagsCopier.copy(tags);
return this;
}
@Override
public Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) {
super.overrideConfiguration(overrideConfiguration);
return this;
}
@Override
public Builder overrideConfiguration(Consumer builderConsumer) {
super.overrideConfiguration(builderConsumer);
return this;
}
@Override
public CreateApplicationRequest build() {
return new CreateApplicationRequest(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
}
}