@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.AllowPublish
public String getPublish()
The package origin configuration that determines if new versions of the package can be published directly to the repository.
AllowPublish
public 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.AllowPublish
public 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.AllowPublish
public 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.AllowUpstream
public 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.
AllowUpstream
public 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.AllowUpstream
public 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.AllowUpstream
public String toString()
toString
in class Object
Object.toString()
public PackageOriginRestrictions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.