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.migrationhubrefactorspaces.model.CreateApplicationResponse Maven / Gradle / Ivy
Go to download
The AWS Java SDK for Migration Hub Refactor Spaces module holds the client classes that are used for
communicating with Migration Hub Refactor Spaces.
/*
* 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.migrationhubrefactorspaces.model;
import java.time.Instant;
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.Consumer;
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.core.traits.MapTrait;
import software.amazon.awssdk.core.util.DefaultSdkAutoConstructMap;
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 CreateApplicationResponse extends MigrationHubRefactorSpacesResponse implements
ToCopyableBuilder {
private static final SdkField API_GATEWAY_PROXY_FIELD = SdkField
. builder(MarshallingType.SDK_POJO).memberName("ApiGatewayProxy")
.getter(getter(CreateApplicationResponse::apiGatewayProxy)).setter(setter(Builder::apiGatewayProxy))
.constructor(ApiGatewayProxyInput::builder)
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ApiGatewayProxy").build()).build();
private static final SdkField APPLICATION_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("ApplicationId").getter(getter(CreateApplicationResponse::applicationId))
.setter(setter(Builder::applicationId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ApplicationId").build()).build();
private static final SdkField ARN_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Arn")
.getter(getter(CreateApplicationResponse::arn)).setter(setter(Builder::arn))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Arn").build()).build();
private static final SdkField CREATED_BY_ACCOUNT_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("CreatedByAccountId").getter(getter(CreateApplicationResponse::createdByAccountId))
.setter(setter(Builder::createdByAccountId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreatedByAccountId").build())
.build();
private static final SdkField CREATED_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("CreatedTime").getter(getter(CreateApplicationResponse::createdTime))
.setter(setter(Builder::createdTime))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("CreatedTime").build()).build();
private static final SdkField ENVIRONMENT_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("EnvironmentId").getter(getter(CreateApplicationResponse::environmentId))
.setter(setter(Builder::environmentId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("EnvironmentId").build()).build();
private static final SdkField LAST_UPDATED_TIME_FIELD = SdkField. builder(MarshallingType.INSTANT)
.memberName("LastUpdatedTime").getter(getter(CreateApplicationResponse::lastUpdatedTime))
.setter(setter(Builder::lastUpdatedTime))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("LastUpdatedTime").build()).build();
private static final SdkField NAME_FIELD = SdkField. builder(MarshallingType.STRING).memberName("Name")
.getter(getter(CreateApplicationResponse::name)).setter(setter(Builder::name))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("Name").build()).build();
private static final SdkField OWNER_ACCOUNT_ID_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("OwnerAccountId").getter(getter(CreateApplicationResponse::ownerAccountId))
.setter(setter(Builder::ownerAccountId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("OwnerAccountId").build()).build();
private static final SdkField PROXY_TYPE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("ProxyType").getter(getter(CreateApplicationResponse::proxyTypeAsString))
.setter(setter(Builder::proxyType))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("ProxyType").build()).build();
private static final SdkField STATE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("State")
.getter(getter(CreateApplicationResponse::stateAsString)).setter(setter(Builder::state))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("State").build()).build();
private static final SdkField> TAGS_FIELD = SdkField
.> builder(MarshallingType.MAP)
.memberName("Tags")
.getter(getter(CreateApplicationResponse::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 SdkField VPC_ID_FIELD = SdkField. builder(MarshallingType.STRING).memberName("VpcId")
.getter(getter(CreateApplicationResponse::vpcId)).setter(setter(Builder::vpcId))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("VpcId").build()).build();
private static final List> SDK_FIELDS = Collections
.unmodifiableList(Arrays.asList(API_GATEWAY_PROXY_FIELD, APPLICATION_ID_FIELD, ARN_FIELD,
CREATED_BY_ACCOUNT_ID_FIELD, CREATED_TIME_FIELD, ENVIRONMENT_ID_FIELD, LAST_UPDATED_TIME_FIELD, NAME_FIELD,
OWNER_ACCOUNT_ID_FIELD, PROXY_TYPE_FIELD, STATE_FIELD, TAGS_FIELD, VPC_ID_FIELD));
private static final Map> SDK_NAME_TO_FIELD = Collections
.unmodifiableMap(new HashMap>() {
{
put("ApiGatewayProxy", API_GATEWAY_PROXY_FIELD);
put("ApplicationId", APPLICATION_ID_FIELD);
put("Arn", ARN_FIELD);
put("CreatedByAccountId", CREATED_BY_ACCOUNT_ID_FIELD);
put("CreatedTime", CREATED_TIME_FIELD);
put("EnvironmentId", ENVIRONMENT_ID_FIELD);
put("LastUpdatedTime", LAST_UPDATED_TIME_FIELD);
put("Name", NAME_FIELD);
put("OwnerAccountId", OWNER_ACCOUNT_ID_FIELD);
put("ProxyType", PROXY_TYPE_FIELD);
put("State", STATE_FIELD);
put("Tags", TAGS_FIELD);
put("VpcId", VPC_ID_FIELD);
}
});
private final ApiGatewayProxyInput apiGatewayProxy;
private final String applicationId;
private final String arn;
private final String createdByAccountId;
private final Instant createdTime;
private final String environmentId;
private final Instant lastUpdatedTime;
private final String name;
private final String ownerAccountId;
private final String proxyType;
private final String state;
private final Map tags;
private final String vpcId;
private CreateApplicationResponse(BuilderImpl builder) {
super(builder);
this.apiGatewayProxy = builder.apiGatewayProxy;
this.applicationId = builder.applicationId;
this.arn = builder.arn;
this.createdByAccountId = builder.createdByAccountId;
this.createdTime = builder.createdTime;
this.environmentId = builder.environmentId;
this.lastUpdatedTime = builder.lastUpdatedTime;
this.name = builder.name;
this.ownerAccountId = builder.ownerAccountId;
this.proxyType = builder.proxyType;
this.state = builder.state;
this.tags = builder.tags;
this.vpcId = builder.vpcId;
}
/**
*
* A wrapper object holding the API Gateway endpoint type and stage name for the proxy.
*
*
* @return A wrapper object holding the API Gateway endpoint type and stage name for the proxy.
*/
public final ApiGatewayProxyInput apiGatewayProxy() {
return apiGatewayProxy;
}
/**
*
* The unique identifier of the application.
*
*
* @return The unique identifier of the application.
*/
public final String applicationId() {
return applicationId;
}
/**
*
* The Amazon Resource Name (ARN) of the application. The format for this ARN is
* arn:aws:refactor-spaces:region :account-id :resource-type/resource-id
. For more
* information about ARNs, see
* Amazon Resource Names (ARNs) in the Amazon Web Services General Reference .
*
*
* @return The Amazon Resource Name (ARN) of the application. The format for this ARN is
* arn:aws:refactor-spaces:region :account-id :resource-type/resource-id
.
* For more information about ARNs, see Amazon Resource Names
* (ARNs) in the Amazon Web Services General Reference .
*/
public final String arn() {
return arn;
}
/**
*
* The Amazon Web Services account ID of application creator.
*
*
* @return The Amazon Web Services account ID of application creator.
*/
public final String createdByAccountId() {
return createdByAccountId;
}
/**
*
* A timestamp that indicates when the application is created.
*
*
* @return A timestamp that indicates when the application is created.
*/
public final Instant createdTime() {
return createdTime;
}
/**
*
* The ID of the environment in which the application is created.
*
*
* @return The ID of the environment in which the application is created.
*/
public final String environmentId() {
return environmentId;
}
/**
*
* A timestamp that indicates when the application was last updated.
*
*
* @return A timestamp that indicates when the application was last updated.
*/
public final Instant lastUpdatedTime() {
return lastUpdatedTime;
}
/**
*
* The name of the application.
*
*
* @return The name of the application.
*/
public final String name() {
return name;
}
/**
*
* The Amazon Web Services account ID of the application owner (which is always the same as the environment owner
* account ID).
*
*
* @return The Amazon Web Services account ID of the application owner (which is always the same as the environment
* owner account ID).
*/
public final String ownerAccountId() {
return ownerAccountId;
}
/**
*
* The proxy type of the proxy created within the application.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #proxyType} will
* return {@link ProxyType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #proxyTypeAsString}.
*
*
* @return The proxy type of the proxy created within the application.
* @see ProxyType
*/
public final ProxyType proxyType() {
return ProxyType.fromValue(proxyType);
}
/**
*
* The proxy type of the proxy created within the application.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #proxyType} will
* return {@link ProxyType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #proxyTypeAsString}.
*
*
* @return The proxy type of the proxy created within the application.
* @see ProxyType
*/
public final String proxyTypeAsString() {
return proxyType;
}
/**
*
* The current state of the application.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #state} will return
* {@link ApplicationState#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #stateAsString}.
*
*
* @return The current state of the application.
* @see ApplicationState
*/
public final ApplicationState state() {
return ApplicationState.fromValue(state);
}
/**
*
* The current state of the application.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #state} will return
* {@link ApplicationState#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #stateAsString}.
*
*
* @return The current state of the application.
* @see ApplicationState
*/
public final String stateAsString() {
return state;
}
/**
* 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. A tag is a label that you assign to an Amazon Web Services resource. Each
* tag consists of a key-value pair.
*
*
* 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. A tag is a label that you assign to an Amazon Web Services
* resource. Each tag consists of a key-value pair.
*/
public final Map tags() {
return tags;
}
/**
*
* The ID of the Amazon VPC.
*
*
* @return The ID of the Amazon VPC.
*/
public final String vpcId() {
return vpcId;
}
@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(apiGatewayProxy());
hashCode = 31 * hashCode + Objects.hashCode(applicationId());
hashCode = 31 * hashCode + Objects.hashCode(arn());
hashCode = 31 * hashCode + Objects.hashCode(createdByAccountId());
hashCode = 31 * hashCode + Objects.hashCode(createdTime());
hashCode = 31 * hashCode + Objects.hashCode(environmentId());
hashCode = 31 * hashCode + Objects.hashCode(lastUpdatedTime());
hashCode = 31 * hashCode + Objects.hashCode(name());
hashCode = 31 * hashCode + Objects.hashCode(ownerAccountId());
hashCode = 31 * hashCode + Objects.hashCode(proxyTypeAsString());
hashCode = 31 * hashCode + Objects.hashCode(stateAsString());
hashCode = 31 * hashCode + Objects.hashCode(hasTags() ? tags() : null);
hashCode = 31 * hashCode + Objects.hashCode(vpcId());
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 CreateApplicationResponse)) {
return false;
}
CreateApplicationResponse other = (CreateApplicationResponse) obj;
return Objects.equals(apiGatewayProxy(), other.apiGatewayProxy())
&& Objects.equals(applicationId(), other.applicationId()) && Objects.equals(arn(), other.arn())
&& Objects.equals(createdByAccountId(), other.createdByAccountId())
&& Objects.equals(createdTime(), other.createdTime()) && Objects.equals(environmentId(), other.environmentId())
&& Objects.equals(lastUpdatedTime(), other.lastUpdatedTime()) && Objects.equals(name(), other.name())
&& Objects.equals(ownerAccountId(), other.ownerAccountId())
&& Objects.equals(proxyTypeAsString(), other.proxyTypeAsString())
&& Objects.equals(stateAsString(), other.stateAsString()) && hasTags() == other.hasTags()
&& Objects.equals(tags(), other.tags()) && Objects.equals(vpcId(), other.vpcId());
}
/**
* 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("CreateApplicationResponse").add("ApiGatewayProxy", apiGatewayProxy())
.add("ApplicationId", applicationId()).add("Arn", arn()).add("CreatedByAccountId", createdByAccountId())
.add("CreatedTime", createdTime()).add("EnvironmentId", environmentId())
.add("LastUpdatedTime", lastUpdatedTime()).add("Name", name()).add("OwnerAccountId", ownerAccountId())
.add("ProxyType", proxyTypeAsString()).add("State", stateAsString())
.add("Tags", tags() == null ? null : "*** Sensitive Data Redacted ***").add("VpcId", vpcId()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "ApiGatewayProxy":
return Optional.ofNullable(clazz.cast(apiGatewayProxy()));
case "ApplicationId":
return Optional.ofNullable(clazz.cast(applicationId()));
case "Arn":
return Optional.ofNullable(clazz.cast(arn()));
case "CreatedByAccountId":
return Optional.ofNullable(clazz.cast(createdByAccountId()));
case "CreatedTime":
return Optional.ofNullable(clazz.cast(createdTime()));
case "EnvironmentId":
return Optional.ofNullable(clazz.cast(environmentId()));
case "LastUpdatedTime":
return Optional.ofNullable(clazz.cast(lastUpdatedTime()));
case "Name":
return Optional.ofNullable(clazz.cast(name()));
case "OwnerAccountId":
return Optional.ofNullable(clazz.cast(ownerAccountId()));
case "ProxyType":
return Optional.ofNullable(clazz.cast(proxyTypeAsString()));
case "State":
return Optional.ofNullable(clazz.cast(stateAsString()));
case "Tags":
return Optional.ofNullable(clazz.cast(tags()));
case "VpcId":
return Optional.ofNullable(clazz.cast(vpcId()));
default:
return Optional.empty();
}
}
@Override
public final List> sdkFields() {
return SDK_FIELDS;
}
@Override
public final Map> sdkFieldNameToField() {
return SDK_NAME_TO_FIELD;
}
private static Function getter(Function g) {
return obj -> g.apply((CreateApplicationResponse) obj);
}
private static BiConsumer setter(BiConsumer s) {
return (obj, val) -> s.accept((Builder) obj, val);
}
public interface Builder extends MigrationHubRefactorSpacesResponse.Builder, SdkPojo,
CopyableBuilder {
/**
*
* A wrapper object holding the API Gateway endpoint type and stage name for the proxy.
*
*
* @param apiGatewayProxy
* A wrapper object holding the API Gateway endpoint type and stage name for the proxy.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder apiGatewayProxy(ApiGatewayProxyInput apiGatewayProxy);
/**
*
* A wrapper object holding the API Gateway endpoint type and stage name for the proxy.
*
* This is a convenience method that creates an instance of the {@link ApiGatewayProxyInput.Builder} avoiding
* the need to create one manually via {@link ApiGatewayProxyInput#builder()}.
*
*
* When the {@link Consumer} completes, {@link ApiGatewayProxyInput.Builder#build()} is called immediately and
* its result is passed to {@link #apiGatewayProxy(ApiGatewayProxyInput)}.
*
* @param apiGatewayProxy
* a consumer that will call methods on {@link ApiGatewayProxyInput.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #apiGatewayProxy(ApiGatewayProxyInput)
*/
default Builder apiGatewayProxy(Consumer apiGatewayProxy) {
return apiGatewayProxy(ApiGatewayProxyInput.builder().applyMutation(apiGatewayProxy).build());
}
/**
*
* The unique identifier of the application.
*
*
* @param applicationId
* The unique identifier of the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder applicationId(String applicationId);
/**
*
* The Amazon Resource Name (ARN) of the application. The format for this ARN is
* arn:aws:refactor-spaces:region :account-id :resource-type/resource-id
. For
* more information about ARNs, see Amazon Resource Names
* (ARNs) in the Amazon Web Services General Reference .
*
*
* @param arn
* The Amazon Resource Name (ARN) of the application. The format for this ARN is
* arn:aws:refactor-spaces:region :account-id :resource-type/resource-id
* . For more information about ARNs, see Amazon Resource
* Names (ARNs) in the Amazon Web Services General Reference .
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder arn(String arn);
/**
*
* The Amazon Web Services account ID of application creator.
*
*
* @param createdByAccountId
* The Amazon Web Services account ID of application creator.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder createdByAccountId(String createdByAccountId);
/**
*
* A timestamp that indicates when the application is created.
*
*
* @param createdTime
* A timestamp that indicates when the application is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder createdTime(Instant createdTime);
/**
*
* The ID of the environment in which the application is created.
*
*
* @param environmentId
* The ID of the environment in which the application is created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder environmentId(String environmentId);
/**
*
* A timestamp that indicates when the application was last updated.
*
*
* @param lastUpdatedTime
* A timestamp that indicates when the application was last updated.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lastUpdatedTime(Instant lastUpdatedTime);
/**
*
* The name of the application.
*
*
* @param name
* The name of the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder name(String name);
/**
*
* The Amazon Web Services account ID of the application owner (which is always the same as the environment
* owner account ID).
*
*
* @param ownerAccountId
* The Amazon Web Services account ID of the application owner (which is always the same as the
* environment owner account ID).
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder ownerAccountId(String ownerAccountId);
/**
*
* The proxy type of the proxy created within the application.
*
*
* @param proxyType
* The proxy type of the proxy created within the application.
* @see ProxyType
* @return Returns a reference to this object so that method calls can be chained together.
* @see ProxyType
*/
Builder proxyType(String proxyType);
/**
*
* The proxy type of the proxy created within the application.
*
*
* @param proxyType
* The proxy type of the proxy created within the application.
* @see ProxyType
* @return Returns a reference to this object so that method calls can be chained together.
* @see ProxyType
*/
Builder proxyType(ProxyType proxyType);
/**
*
* The current state of the application.
*
*
* @param state
* The current state of the application.
* @see ApplicationState
* @return Returns a reference to this object so that method calls can be chained together.
* @see ApplicationState
*/
Builder state(String state);
/**
*
* The current state of the application.
*
*
* @param state
* The current state of the application.
* @see ApplicationState
* @return Returns a reference to this object so that method calls can be chained together.
* @see ApplicationState
*/
Builder state(ApplicationState state);
/**
*
* The tags assigned to the application. A tag is a label that you assign to an Amazon Web Services resource.
* Each tag consists of a key-value pair.
*
*
* @param tags
* The tags assigned to the application. A tag is a label that you assign to an Amazon Web Services
* resource. Each tag consists of a key-value pair.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder tags(Map tags);
/**
*
* The ID of the Amazon VPC.
*
*
* @param vpcId
* The ID of the Amazon VPC.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder vpcId(String vpcId);
}
static final class BuilderImpl extends MigrationHubRefactorSpacesResponse.BuilderImpl implements Builder {
private ApiGatewayProxyInput apiGatewayProxy;
private String applicationId;
private String arn;
private String createdByAccountId;
private Instant createdTime;
private String environmentId;
private Instant lastUpdatedTime;
private String name;
private String ownerAccountId;
private String proxyType;
private String state;
private Map tags = DefaultSdkAutoConstructMap.getInstance();
private String vpcId;
private BuilderImpl() {
}
private BuilderImpl(CreateApplicationResponse model) {
super(model);
apiGatewayProxy(model.apiGatewayProxy);
applicationId(model.applicationId);
arn(model.arn);
createdByAccountId(model.createdByAccountId);
createdTime(model.createdTime);
environmentId(model.environmentId);
lastUpdatedTime(model.lastUpdatedTime);
name(model.name);
ownerAccountId(model.ownerAccountId);
proxyType(model.proxyType);
state(model.state);
tags(model.tags);
vpcId(model.vpcId);
}
public final ApiGatewayProxyInput.Builder getApiGatewayProxy() {
return apiGatewayProxy != null ? apiGatewayProxy.toBuilder() : null;
}
public final void setApiGatewayProxy(ApiGatewayProxyInput.BuilderImpl apiGatewayProxy) {
this.apiGatewayProxy = apiGatewayProxy != null ? apiGatewayProxy.build() : null;
}
@Override
public final Builder apiGatewayProxy(ApiGatewayProxyInput apiGatewayProxy) {
this.apiGatewayProxy = apiGatewayProxy;
return this;
}
public final String getApplicationId() {
return applicationId;
}
public final void setApplicationId(String applicationId) {
this.applicationId = applicationId;
}
@Override
public final Builder applicationId(String applicationId) {
this.applicationId = applicationId;
return this;
}
public final String getArn() {
return arn;
}
public final void setArn(String arn) {
this.arn = arn;
}
@Override
public final Builder arn(String arn) {
this.arn = arn;
return this;
}
public final String getCreatedByAccountId() {
return createdByAccountId;
}
public final void setCreatedByAccountId(String createdByAccountId) {
this.createdByAccountId = createdByAccountId;
}
@Override
public final Builder createdByAccountId(String createdByAccountId) {
this.createdByAccountId = createdByAccountId;
return this;
}
public final Instant getCreatedTime() {
return createdTime;
}
public final void setCreatedTime(Instant createdTime) {
this.createdTime = createdTime;
}
@Override
public final Builder createdTime(Instant createdTime) {
this.createdTime = createdTime;
return this;
}
public final String getEnvironmentId() {
return environmentId;
}
public final void setEnvironmentId(String environmentId) {
this.environmentId = environmentId;
}
@Override
public final Builder environmentId(String environmentId) {
this.environmentId = environmentId;
return this;
}
public final Instant getLastUpdatedTime() {
return lastUpdatedTime;
}
public final void setLastUpdatedTime(Instant lastUpdatedTime) {
this.lastUpdatedTime = lastUpdatedTime;
}
@Override
public final Builder lastUpdatedTime(Instant lastUpdatedTime) {
this.lastUpdatedTime = lastUpdatedTime;
return this;
}
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 getOwnerAccountId() {
return ownerAccountId;
}
public final void setOwnerAccountId(String ownerAccountId) {
this.ownerAccountId = ownerAccountId;
}
@Override
public final Builder ownerAccountId(String ownerAccountId) {
this.ownerAccountId = ownerAccountId;
return this;
}
public final String getProxyType() {
return proxyType;
}
public final void setProxyType(String proxyType) {
this.proxyType = proxyType;
}
@Override
public final Builder proxyType(String proxyType) {
this.proxyType = proxyType;
return this;
}
@Override
public final Builder proxyType(ProxyType proxyType) {
this.proxyType(proxyType == null ? null : proxyType.toString());
return this;
}
public final String getState() {
return state;
}
public final void setState(String state) {
this.state = state;
}
@Override
public final Builder state(String state) {
this.state = state;
return this;
}
@Override
public final Builder state(ApplicationState state) {
this.state(state == null ? null : state.toString());
return this;
}
public final Map getTags() {
if (tags instanceof SdkAutoConstructMap) {
return null;
}
return tags;
}
public final void setTags(Map tags) {
this.tags = TagMapCopier.copy(tags);
}
@Override
public final Builder tags(Map tags) {
this.tags = TagMapCopier.copy(tags);
return this;
}
public final String getVpcId() {
return vpcId;
}
public final void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
@Override
public final Builder vpcId(String vpcId) {
this.vpcId = vpcId;
return this;
}
@Override
public CreateApplicationResponse build() {
return new CreateApplicationResponse(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
@Override
public Map> sdkFieldNameToField() {
return SDK_NAME_TO_FIELD;
}
}
}