@Generated(value="software.amazon.awssdk:codegen") public final class PackageDependency extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PackageDependency.Builder,PackageDependency>
Details about a package dependency.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PackageDependency.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PackageDependency.Builder |
builder() |
String |
dependencyType()
The type of a package dependency.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
namespace()
The namespace of the package that this package depends on.
|
String |
packageValue()
The name of the package that this package depends on.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PackageDependency.Builder> |
serializableBuilderClass() |
PackageDependency.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
versionRequirement()
The required version, or version range, of the package that this package depends on.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String namespace()
The namespace of the package that this package depends on. The package component that specifies its namespace depends on its type. For example:
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 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.
public final String packageValue()
The name of the package that this package depends on.
public final String dependencyType()
The type of a package dependency. The possible values depend on the package type. Example types are
compile, runtime, and test for Maven packages, and dev,
prod, and optional for npm packages.
compile, runtime, and test for Maven packages, and
dev, prod, and optional for npm packages.public final String versionRequirement()
The required version, or version range, of the package that this package depends on. The version format is
specific to the package type. For example, the following are possible valid required versions: 1.2.3, ^2.3.4, or 4.x.
1.2.3, ^2.3.4, or 4.x.public PackageDependency.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PackageDependency.Builder,PackageDependency>public static PackageDependency.Builder builder()
public static Class<? extends PackageDependency.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.