@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PackageOriginRestrictions extends Object implements Serializable, Cloneable, StructuredPojo
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.
| Constructor and Description |
|---|
PackageOriginRestrictions() |
| Modifier and Type | Method and Description |
|---|---|
PackageOriginRestrictions |
clone() |
boolean |
equals(Object obj) |
String |
getPublish()
The package origin configuration that determines if new versions of the package can be published directly to the
repository.
|
String |
getUpstream()
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.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setPublish(String publish)
The package origin configuration that determines if new versions of the package can be published directly to the
repository.
|
void |
setUpstream(String 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 |
toString()
Returns a string representation of this object.
|
PackageOriginRestrictions |
withPublish(AllowPublish publish)
The package origin configuration that determines if new versions of the package can be published directly to the
repository.
|
PackageOriginRestrictions |
withPublish(String publish)
The package origin configuration that determines if new versions of the package can be published directly to the
repository.
|
PackageOriginRestrictions |
withUpstream(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.
|
PackageOriginRestrictions |
withUpstream(String 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.
|
public void setPublish(String publish)
The package origin configuration that determines if new versions of the package can be published directly to the repository.
publish - The package origin configuration that determines if new versions of the package can be published directly
to the repository.AllowPublishpublic String getPublish()
The package origin configuration that determines if new versions of the package can be published directly to the repository.
AllowPublishpublic PackageOriginRestrictions withPublish(String publish)
The package origin configuration that determines if new versions of the package can be published directly to the repository.
publish - The package origin configuration that determines if new versions of the package can be published directly
to the repository.AllowPublishpublic PackageOriginRestrictions withPublish(AllowPublish publish)
The package origin configuration that determines if new versions of the package can be published directly to the repository.
publish - The package origin configuration that determines if new versions of the package can be published directly
to the repository.AllowPublishpublic void setUpstream(String 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.
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.AllowUpstreampublic String getUpstream()
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.
AllowUpstreampublic PackageOriginRestrictions withUpstream(String 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.
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.AllowUpstreampublic PackageOriginRestrictions withUpstream(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.
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.AllowUpstreampublic String toString()
toString in class ObjectObject.toString()public PackageOriginRestrictions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.