Class ListPackagesRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.codeartifact.model.CodeartifactRequest
-
- software.amazon.awssdk.services.codeartifact.model.ListPackagesRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ListPackagesRequest.Builder,ListPackagesRequest>
@Generated("software.amazon.awssdk:codegen") public final class ListPackagesRequest extends CodeartifactRequest implements ToCopyableBuilder<ListPackagesRequest.Builder,ListPackagesRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceListPackagesRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ListPackagesRequest.Builderbuilder()Stringdomain()The name of the domain that contains the repository that contains the requested packages.StringdomainOwner()The 12-digit account number of the Amazon Web Services account that owns the domain.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)PackageFormatformat()The format used to filter requested packages.StringformatAsString()The format used to filter requested packages.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegermaxResults()The maximum number of results to return per page.Stringnamespace()The namespace prefix used to filter requested packages.StringnextToken()The token for the next set of results.StringpackagePrefix()A prefix used to filter requested packages.AllowPublishpublish()The value of thePublishpackage origin control restriction used to filter requested packages.StringpublishAsString()The value of thePublishpackage origin control restriction used to filter requested packages.Stringrepository()The name of the repository that contains the requested packages.List<SdkField<?>>sdkFields()static Class<? extends ListPackagesRequest.Builder>serializableBuilderClass()ListPackagesRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.AllowUpstreamupstream()The value of theUpstreampackage origin control restriction used to filter requested packages.StringupstreamAsString()The value of theUpstreampackage origin control restriction used to filter requested packages.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
domain
public final String domain()
The name of the domain that contains the repository that contains the requested packages.
- Returns:
- The name of the domain that contains the repository that contains the requested packages.
-
domainOwner
public final String domainOwner()
The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
- Returns:
- The 12-digit account number of the Amazon Web Services account that owns the domain. It does not include dashes or spaces.
-
repository
public final String repository()
The name of the repository that contains the requested packages.
- Returns:
- The name of the repository that contains the requested packages.
-
format
public final PackageFormat format()
The format used to filter requested packages. Only packages from the provided format will be returned.
If the service returns an enum value that is not available in the current SDK version,
formatwill returnPackageFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromformatAsString().- Returns:
- The format used to filter requested packages. Only packages from the provided format will be returned.
- See Also:
PackageFormat
-
formatAsString
public final String formatAsString()
The format used to filter requested packages. Only packages from the provided format will be returned.
If the service returns an enum value that is not available in the current SDK version,
formatwill returnPackageFormat.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromformatAsString().- Returns:
- The format used to filter requested packages. Only packages from the provided format will be returned.
- See Also:
PackageFormat
-
namespace
public final String namespace()
The namespace prefix used to filter requested packages. Only packages with a namespace that starts with the provided string value are returned. Note that although this option is called
--namespaceand not--namespace-prefix, it has prefix-matching behavior.Each package format uses namespace as follows:
-
The namespace of a Maven package is its
groupId. -
The namespace of an npm package is its
scope. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
namespace.
- Returns:
- The namespace prefix used to filter requested packages. Only packages with a namespace that starts with
the provided string value are returned. Note that although this option is called
--namespaceand not--namespace-prefix, it has prefix-matching behavior.Each package format uses namespace as follows:
-
The namespace of a Maven package is its
groupId. -
The namespace of an npm package is its
scope. -
Python and NuGet packages do not contain a corresponding component, packages of those formats do not have a namespace.
-
The namespace of a generic package is its
namespace.
-
-
-
packagePrefix
public final String packagePrefix()
A prefix used to filter requested packages. Only packages with names that start with
packagePrefixare returned.- Returns:
- A prefix used to filter requested packages. Only packages with names that start with
packagePrefixare returned.
-
maxResults
public final Integer maxResults()
The maximum number of results to return per page.
- Returns:
- The maximum number of results to return per page.
-
nextToken
public final String nextToken()
The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
- Returns:
- The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.
-
publish
public final AllowPublish publish()
The value of the
Publishpackage origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.If the service returns an enum value that is not available in the current SDK version,
publishwill returnAllowPublish.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublishAsString().- Returns:
- The value of the
Publishpackage origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions. - See Also:
AllowPublish
-
publishAsString
public final String publishAsString()
The value of the
Publishpackage origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.If the service returns an enum value that is not available in the current SDK version,
publishwill returnAllowPublish.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublishAsString().- Returns:
- The value of the
Publishpackage origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions. - See Also:
AllowPublish
-
upstream
public final AllowUpstream upstream()
The value of the
Upstreampackage origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.If the service returns an enum value that is not available in the current SDK version,
upstreamwill returnAllowUpstream.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromupstreamAsString().- Returns:
- The value of the
Upstreampackage origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions. - See Also:
AllowUpstream
-
upstreamAsString
public final String upstreamAsString()
The value of the
Upstreampackage origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions.If the service returns an enum value that is not available in the current SDK version,
upstreamwill returnAllowUpstream.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromupstreamAsString().- Returns:
- The value of the
Upstreampackage origin control restriction used to filter requested packages. Only packages with the provided restriction are returned. For more information, see PackageOriginRestrictions. - See Also:
AllowUpstream
-
toBuilder
public ListPackagesRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ListPackagesRequest.Builder,ListPackagesRequest>- Specified by:
toBuilderin classCodeartifactRequest
-
builder
public static ListPackagesRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends ListPackagesRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
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.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-