Class PackageOriginRestrictions
- java.lang.Object
-
- software.amazon.awssdk.services.codeartifact.model.PackageOriginRestrictions
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PackageOriginRestrictions.Builder,PackageOriginRestrictions>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePackageOriginRestrictions.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PackageOriginRestrictions.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()AllowPublishpublish()The package origin configuration that determines if new versions of the package can be published directly to the repository.StringpublishAsString()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.BuildertoBuilder()StringtoString()Returns a string representation of this object.AllowUpstreamupstream()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.StringupstreamAsString()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.-
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
-
publish
public 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,
publishwill returnAllowPublish.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublishAsString().- Returns:
- The package origin configuration that determines if new versions of the package can be published directly to the repository.
- See Also:
AllowPublish
-
publishAsString
public 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,
publishwill returnAllowPublish.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frompublishAsString().- Returns:
- The package origin configuration that determines if new versions of the package can be published directly to the repository.
- See Also:
AllowPublish
-
upstream
public 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,
upstreamwill returnAllowUpstream.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromupstreamAsString().- Returns:
- 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.
- See Also:
AllowUpstream
-
upstreamAsString
public 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,
upstreamwill returnAllowUpstream.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromupstreamAsString().- Returns:
- 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.
- See Also:
AllowUpstream
-
toBuilder
public PackageOriginRestrictions.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PackageOriginRestrictions.Builder,PackageOriginRestrictions>
-
builder
public static PackageOriginRestrictions.Builder builder()
-
serializableBuilderClass
public static Class<? extends PackageOriginRestrictions.Builder> serializableBuilderClass()
-
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.
-
-