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.codeartifact.model.DisposePackageVersionsRequest Maven / Gradle / Ivy
Go to download
The AWS Java SDK for Codeartifact module holds the client classes that are used for
communicating with Codeartifact.
/*
* 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.codeartifact.model;
import java.util.Arrays;
import java.util.Collection;
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.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 DisposePackageVersionsRequest extends CodeartifactRequest implements
ToCopyableBuilder {
private static final SdkField DOMAIN_FIELD = SdkField. builder(MarshallingType.STRING).memberName("domain")
.getter(getter(DisposePackageVersionsRequest::domain)).setter(setter(Builder::domain))
.traits(LocationTrait.builder().location(MarshallLocation.QUERY_PARAM).locationName("domain").build()).build();
private static final SdkField DOMAIN_OWNER_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("domainOwner").getter(getter(DisposePackageVersionsRequest::domainOwner))
.setter(setter(Builder::domainOwner))
.traits(LocationTrait.builder().location(MarshallLocation.QUERY_PARAM).locationName("domain-owner").build()).build();
private static final SdkField REPOSITORY_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("repository").getter(getter(DisposePackageVersionsRequest::repository))
.setter(setter(Builder::repository))
.traits(LocationTrait.builder().location(MarshallLocation.QUERY_PARAM).locationName("repository").build()).build();
private static final SdkField FORMAT_FIELD = SdkField. builder(MarshallingType.STRING).memberName("format")
.getter(getter(DisposePackageVersionsRequest::formatAsString)).setter(setter(Builder::format))
.traits(LocationTrait.builder().location(MarshallLocation.QUERY_PARAM).locationName("format").build()).build();
private static final SdkField NAMESPACE_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("namespace").getter(getter(DisposePackageVersionsRequest::namespace)).setter(setter(Builder::namespace))
.traits(LocationTrait.builder().location(MarshallLocation.QUERY_PARAM).locationName("namespace").build()).build();
private static final SdkField PACKAGE_FIELD = SdkField. builder(MarshallingType.STRING).memberName("package")
.getter(getter(DisposePackageVersionsRequest::packageValue)).setter(setter(Builder::packageValue))
.traits(LocationTrait.builder().location(MarshallLocation.QUERY_PARAM).locationName("package").build()).build();
private static final SdkField> VERSIONS_FIELD = SdkField
.> builder(MarshallingType.LIST)
.memberName("versions")
.getter(getter(DisposePackageVersionsRequest::versions))
.setter(setter(Builder::versions))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("versions").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> VERSION_REVISIONS_FIELD = SdkField
.> builder(MarshallingType.MAP)
.memberName("versionRevisions")
.getter(getter(DisposePackageVersionsRequest::versionRevisions))
.setter(setter(Builder::versionRevisions))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("versionRevisions").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 EXPECTED_STATUS_FIELD = SdkField. builder(MarshallingType.STRING)
.memberName("expectedStatus").getter(getter(DisposePackageVersionsRequest::expectedStatusAsString))
.setter(setter(Builder::expectedStatus))
.traits(LocationTrait.builder().location(MarshallLocation.PAYLOAD).locationName("expectedStatus").build()).build();
private static final List> SDK_FIELDS = Collections.unmodifiableList(Arrays.asList(DOMAIN_FIELD,
DOMAIN_OWNER_FIELD, REPOSITORY_FIELD, FORMAT_FIELD, NAMESPACE_FIELD, PACKAGE_FIELD, VERSIONS_FIELD,
VERSION_REVISIONS_FIELD, EXPECTED_STATUS_FIELD));
private static final Map> SDK_NAME_TO_FIELD = memberNameToFieldInitializer();
private final String domain;
private final String domainOwner;
private final String repository;
private final String format;
private final String namespace;
private final String packageValue;
private final List versions;
private final Map versionRevisions;
private final String expectedStatus;
private DisposePackageVersionsRequest(BuilderImpl builder) {
super(builder);
this.domain = builder.domain;
this.domainOwner = builder.domainOwner;
this.repository = builder.repository;
this.format = builder.format;
this.namespace = builder.namespace;
this.packageValue = builder.packageValue;
this.versions = builder.versions;
this.versionRevisions = builder.versionRevisions;
this.expectedStatus = builder.expectedStatus;
}
/**
*
* The name of the domain that contains the repository you want to dispose.
*
*
* @return The name of the domain that contains the repository you want to dispose.
*/
public final String domain() {
return domain;
}
/**
*
* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes
* or spaces.
*
*
* @return The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
* dashes or spaces.
*/
public final String domainOwner() {
return domainOwner;
}
/**
*
* The name of the repository that contains the package versions you want to dispose.
*
*
* @return The name of the repository that contains the package versions you want to dispose.
*/
public final String repository() {
return repository;
}
/**
*
* A format that specifies the type of package versions you want to dispose.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #format} will
* return {@link PackageFormat#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #formatAsString}.
*
*
* @return A format that specifies the type of package versions you want to dispose.
* @see PackageFormat
*/
public final PackageFormat format() {
return PackageFormat.fromValue(format);
}
/**
*
* A format that specifies the type of package versions you want to dispose.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #format} will
* return {@link PackageFormat#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #formatAsString}.
*
*
* @return A format that specifies the type of package versions you want to dispose.
* @see PackageFormat
*/
public final String formatAsString() {
return format;
}
/**
*
* The namespace of the package versions to be disposed. The package component that specifies its namespace depends
* on its type. For example:
*
*
*
* The namespace is required when disposing package versions of the following formats:
*
*
*
*
* Maven
*
*
*
*
* Swift
*
*
*
*
* generic
*
*
*
*
*
*
*
* The namespace of a Maven package version is its groupId
.
*
*
*
*
* The namespace of an npm or Swift package version is its scope
.
*
*
*
*
* The namespace of a generic package is its namespace
.
*
*
*
*
* Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of
* those formats do not have a namespace.
*
*
*
*
* @return The namespace of the package versions to be disposed. The package component that specifies its namespace
* depends on its type. For example:
*
* The namespace is required when disposing package versions of the following formats:
*
*
*
*
* Maven
*
*
*
*
* Swift
*
*
*
*
* generic
*
*
*
*
*
*
*
* The namespace of a Maven package version is its groupId
.
*
*
*
*
* The namespace of an npm or Swift package version is its scope
.
*
*
*
*
* The namespace of a generic package is its namespace
.
*
*
*
*
* Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package
* versions of those formats do not have a namespace.
*
*
*/
public final String namespace() {
return namespace;
}
/**
*
* The name of the package with the versions you want to dispose.
*
*
* @return The name of the package with the versions you want to dispose.
*/
public final String packageValue() {
return packageValue;
}
/**
* For responses, this returns true if the service returned a value for the Versions 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 hasVersions() {
return versions != null && !(versions instanceof SdkAutoConstructList);
}
/**
*
* The versions of the package you want to dispose.
*
*
* 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 #hasVersions} method.
*
*
* @return The versions of the package you want to dispose.
*/
public final List versions() {
return versions;
}
/**
* For responses, this returns true if the service returned a value for the VersionRevisions 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 hasVersionRevisions() {
return versionRevisions != null && !(versionRevisions instanceof SdkAutoConstructMap);
}
/**
*
* The revisions of the package versions you want to dispose.
*
*
* 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 #hasVersionRevisions} method.
*
*
* @return The revisions of the package versions you want to dispose.
*/
public final Map versionRevisions() {
return versionRevisions;
}
/**
*
* The expected status of the package version to dispose.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #expectedStatus}
* will return {@link PackageVersionStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
* available from {@link #expectedStatusAsString}.
*
*
* @return The expected status of the package version to dispose.
* @see PackageVersionStatus
*/
public final PackageVersionStatus expectedStatus() {
return PackageVersionStatus.fromValue(expectedStatus);
}
/**
*
* The expected status of the package version to dispose.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #expectedStatus}
* will return {@link PackageVersionStatus#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is
* available from {@link #expectedStatusAsString}.
*
*
* @return The expected status of the package version to dispose.
* @see PackageVersionStatus
*/
public final String expectedStatusAsString() {
return expectedStatus;
}
@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(domain());
hashCode = 31 * hashCode + Objects.hashCode(domainOwner());
hashCode = 31 * hashCode + Objects.hashCode(repository());
hashCode = 31 * hashCode + Objects.hashCode(formatAsString());
hashCode = 31 * hashCode + Objects.hashCode(namespace());
hashCode = 31 * hashCode + Objects.hashCode(packageValue());
hashCode = 31 * hashCode + Objects.hashCode(hasVersions() ? versions() : null);
hashCode = 31 * hashCode + Objects.hashCode(hasVersionRevisions() ? versionRevisions() : null);
hashCode = 31 * hashCode + Objects.hashCode(expectedStatusAsString());
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 DisposePackageVersionsRequest)) {
return false;
}
DisposePackageVersionsRequest other = (DisposePackageVersionsRequest) obj;
return Objects.equals(domain(), other.domain()) && Objects.equals(domainOwner(), other.domainOwner())
&& Objects.equals(repository(), other.repository()) && Objects.equals(formatAsString(), other.formatAsString())
&& Objects.equals(namespace(), other.namespace()) && Objects.equals(packageValue(), other.packageValue())
&& hasVersions() == other.hasVersions() && Objects.equals(versions(), other.versions())
&& hasVersionRevisions() == other.hasVersionRevisions()
&& Objects.equals(versionRevisions(), other.versionRevisions())
&& Objects.equals(expectedStatusAsString(), other.expectedStatusAsString());
}
/**
* 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("DisposePackageVersionsRequest").add("Domain", domain()).add("DomainOwner", domainOwner())
.add("Repository", repository()).add("Format", formatAsString()).add("Namespace", namespace())
.add("Package", packageValue()).add("Versions", hasVersions() ? versions() : null)
.add("VersionRevisions", hasVersionRevisions() ? versionRevisions() : null)
.add("ExpectedStatus", expectedStatusAsString()).build();
}
public final Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "domain":
return Optional.ofNullable(clazz.cast(domain()));
case "domainOwner":
return Optional.ofNullable(clazz.cast(domainOwner()));
case "repository":
return Optional.ofNullable(clazz.cast(repository()));
case "format":
return Optional.ofNullable(clazz.cast(formatAsString()));
case "namespace":
return Optional.ofNullable(clazz.cast(namespace()));
case "package":
return Optional.ofNullable(clazz.cast(packageValue()));
case "versions":
return Optional.ofNullable(clazz.cast(versions()));
case "versionRevisions":
return Optional.ofNullable(clazz.cast(versionRevisions()));
case "expectedStatus":
return Optional.ofNullable(clazz.cast(expectedStatusAsString()));
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("domain", DOMAIN_FIELD);
map.put("domain-owner", DOMAIN_OWNER_FIELD);
map.put("repository", REPOSITORY_FIELD);
map.put("format", FORMAT_FIELD);
map.put("namespace", NAMESPACE_FIELD);
map.put("package", PACKAGE_FIELD);
map.put("versions", VERSIONS_FIELD);
map.put("versionRevisions", VERSION_REVISIONS_FIELD);
map.put("expectedStatus", EXPECTED_STATUS_FIELD);
return Collections.unmodifiableMap(map);
}
private static Function getter(Function g) {
return obj -> g.apply((DisposePackageVersionsRequest) obj);
}
private static BiConsumer setter(BiConsumer s) {
return (obj, val) -> s.accept((Builder) obj, val);
}
public interface Builder extends CodeartifactRequest.Builder, SdkPojo,
CopyableBuilder {
/**
*
* The name of the domain that contains the repository you want to dispose.
*
*
* @param domain
* The name of the domain that contains the repository you want to dispose.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domain(String domain);
/**
*
* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include
* dashes or spaces.
*
*
* @param domainOwner
* The 12-digit account number of the Amazon Web Services account that owns the domain. It does not
* include dashes or spaces.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder domainOwner(String domainOwner);
/**
*
* The name of the repository that contains the package versions you want to dispose.
*
*
* @param repository
* The name of the repository that contains the package versions you want to dispose.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder repository(String repository);
/**
*
* A format that specifies the type of package versions you want to dispose.
*
*
* @param format
* A format that specifies the type of package versions you want to dispose.
* @see PackageFormat
* @return Returns a reference to this object so that method calls can be chained together.
* @see PackageFormat
*/
Builder format(String format);
/**
*
* A format that specifies the type of package versions you want to dispose.
*
*
* @param format
* A format that specifies the type of package versions you want to dispose.
* @see PackageFormat
* @return Returns a reference to this object so that method calls can be chained together.
* @see PackageFormat
*/
Builder format(PackageFormat format);
/**
*
* The namespace of the package versions to be disposed. The package component that specifies its namespace
* depends on its type. For example:
*
*
*
* The namespace is required when disposing package versions of the following formats:
*
*
*
*
* Maven
*
*
*
*
* Swift
*
*
*
*
* generic
*
*
*
*
*
*
*
* The namespace of a Maven package version is its groupId
.
*
*
*
*
* The namespace of an npm or Swift package version is its scope
.
*
*
*
*
* The namespace of a generic package is its namespace
.
*
*
*
*
* Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package versions of
* those formats do not have a namespace.
*
*
*
*
* @param namespace
* The namespace of the package versions to be disposed. The package component that specifies its
* namespace depends on its type. For example:
*
* The namespace is required when disposing package versions of the following formats:
*
*
*
*
* Maven
*
*
*
*
* Swift
*
*
*
*
* generic
*
*
*
*
*
*
*
* The namespace of a Maven package version is its groupId
.
*
*
*
*
* The namespace of an npm or Swift package version is its scope
.
*
*
*
*
* The namespace of a generic package is its namespace
.
*
*
*
*
* Python, NuGet, Ruby, and Cargo package versions do not contain a corresponding component, package
* versions of those formats do not have a namespace.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder namespace(String namespace);
/**
*
* The name of the package with the versions you want to dispose.
*
*
* @param packageValue
* The name of the package with the versions you want to dispose.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder packageValue(String packageValue);
/**
*
* The versions of the package you want to dispose.
*
*
* @param versions
* The versions of the package you want to dispose.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder versions(Collection versions);
/**
*
* The versions of the package you want to dispose.
*
*
* @param versions
* The versions of the package you want to dispose.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder versions(String... versions);
/**
*
* The revisions of the package versions you want to dispose.
*
*
* @param versionRevisions
* The revisions of the package versions you want to dispose.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder versionRevisions(Map versionRevisions);
/**
*
* The expected status of the package version to dispose.
*
*
* @param expectedStatus
* The expected status of the package version to dispose.
* @see PackageVersionStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see PackageVersionStatus
*/
Builder expectedStatus(String expectedStatus);
/**
*
* The expected status of the package version to dispose.
*
*
* @param expectedStatus
* The expected status of the package version to dispose.
* @see PackageVersionStatus
* @return Returns a reference to this object so that method calls can be chained together.
* @see PackageVersionStatus
*/
Builder expectedStatus(PackageVersionStatus expectedStatus);
@Override
Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration);
@Override
Builder overrideConfiguration(Consumer builderConsumer);
}
static final class BuilderImpl extends CodeartifactRequest.BuilderImpl implements Builder {
private String domain;
private String domainOwner;
private String repository;
private String format;
private String namespace;
private String packageValue;
private List versions = DefaultSdkAutoConstructList.getInstance();
private Map versionRevisions = DefaultSdkAutoConstructMap.getInstance();
private String expectedStatus;
private BuilderImpl() {
}
private BuilderImpl(DisposePackageVersionsRequest model) {
super(model);
domain(model.domain);
domainOwner(model.domainOwner);
repository(model.repository);
format(model.format);
namespace(model.namespace);
packageValue(model.packageValue);
versions(model.versions);
versionRevisions(model.versionRevisions);
expectedStatus(model.expectedStatus);
}
public final String getDomain() {
return domain;
}
public final void setDomain(String domain) {
this.domain = domain;
}
@Override
public final Builder domain(String domain) {
this.domain = domain;
return this;
}
public final String getDomainOwner() {
return domainOwner;
}
public final void setDomainOwner(String domainOwner) {
this.domainOwner = domainOwner;
}
@Override
public final Builder domainOwner(String domainOwner) {
this.domainOwner = domainOwner;
return this;
}
public final String getRepository() {
return repository;
}
public final void setRepository(String repository) {
this.repository = repository;
}
@Override
public final Builder repository(String repository) {
this.repository = repository;
return this;
}
public final String getFormat() {
return format;
}
public final void setFormat(String format) {
this.format = format;
}
@Override
public final Builder format(String format) {
this.format = format;
return this;
}
@Override
public final Builder format(PackageFormat format) {
this.format(format == null ? null : format.toString());
return this;
}
public final String getNamespace() {
return namespace;
}
public final void setNamespace(String namespace) {
this.namespace = namespace;
}
@Override
public final Builder namespace(String namespace) {
this.namespace = namespace;
return this;
}
public final String getPackageValue() {
return packageValue;
}
public final void setPackageValue(String packageValue) {
this.packageValue = packageValue;
}
@Override
public final Builder packageValue(String packageValue) {
this.packageValue = packageValue;
return this;
}
public final Collection getVersions() {
if (versions instanceof SdkAutoConstructList) {
return null;
}
return versions;
}
public final void setVersions(Collection versions) {
this.versions = PackageVersionListCopier.copy(versions);
}
@Override
public final Builder versions(Collection versions) {
this.versions = PackageVersionListCopier.copy(versions);
return this;
}
@Override
@SafeVarargs
public final Builder versions(String... versions) {
versions(Arrays.asList(versions));
return this;
}
public final Map getVersionRevisions() {
if (versionRevisions instanceof SdkAutoConstructMap) {
return null;
}
return versionRevisions;
}
public final void setVersionRevisions(Map versionRevisions) {
this.versionRevisions = PackageVersionRevisionMapCopier.copy(versionRevisions);
}
@Override
public final Builder versionRevisions(Map versionRevisions) {
this.versionRevisions = PackageVersionRevisionMapCopier.copy(versionRevisions);
return this;
}
public final String getExpectedStatus() {
return expectedStatus;
}
public final void setExpectedStatus(String expectedStatus) {
this.expectedStatus = expectedStatus;
}
@Override
public final Builder expectedStatus(String expectedStatus) {
this.expectedStatus = expectedStatus;
return this;
}
@Override
public final Builder expectedStatus(PackageVersionStatus expectedStatus) {
this.expectedStatus(expectedStatus == null ? null : expectedStatus.toString());
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 DisposePackageVersionsRequest build() {
return new DisposePackageVersionsRequest(this);
}
@Override
public List> sdkFields() {
return SDK_FIELDS;
}
@Override
public Map> sdkFieldNameToField() {
return SDK_NAME_TO_FIELD;
}
}
}