@Generated(value="software.amazon.awssdk:codegen") public final class PackageOriginRestrictions extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PackageOriginRestrictions.Builder,PackageOriginRestrictions>
Details about the origin restrictions set on the package. The package origin restrictions determine how new versions of a package can be added to a specific repository.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PackageOriginRestrictions.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PackageOriginRestrictions.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
AllowPublish |
publish()
The package origin configuration that determines if new versions of the package can be published directly to the
repository.
|
String |
publishAsString()
The package origin configuration that determines if new versions of the package can be published directly to the
repository.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PackageOriginRestrictions.Builder> |
serializableBuilderClass() |
PackageOriginRestrictions.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
AllowUpstream |
upstream()
The package origin configuration that determines if new versions of the package can be added to the repository
from an external connection or upstream source.
|
String |
upstreamAsString()
The package origin configuration that determines if new versions of the package can be added to the repository
from an external connection or upstream source.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final AllowPublish publish()
The package origin configuration that determines if new versions of the package can be published directly to the repository.
If the service returns an enum value that is not available in the current SDK version, publish will
return AllowPublish.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
publishAsString().
AllowPublishpublic final String publishAsString()
The package origin configuration that determines if new versions of the package can be published directly to the repository.
If the service returns an enum value that is not available in the current SDK version, publish will
return AllowPublish.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
publishAsString().
AllowPublishpublic final AllowUpstream upstream()
The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source.
If the service returns an enum value that is not available in the current SDK version, upstream will
return AllowUpstream.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
upstreamAsString().
AllowUpstreampublic final String upstreamAsString()
The package origin configuration that determines if new versions of the package can be added to the repository from an external connection or upstream source.
If the service returns an enum value that is not available in the current SDK version, upstream will
return AllowUpstream.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
upstreamAsString().
AllowUpstreampublic PackageOriginRestrictions.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PackageOriginRestrictions.Builder,PackageOriginRestrictions>public static PackageOriginRestrictions.Builder builder()
public static Class<? extends PackageOriginRestrictions.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.