@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PackageGroupOriginRestriction extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about the configured restrictions of the origin controls of a package group.
| Constructor and Description | 
|---|
| PackageGroupOriginRestriction() | 
| Modifier and Type | Method and Description | 
|---|---|
| PackageGroupOriginRestriction | clone() | 
| boolean | equals(Object obj) | 
| String | getEffectiveMode()
 The effective package group origin restriction setting. | 
| PackageGroupReference | getInheritedFrom()
 The parent package group that the package group origin restrictions are inherited from. | 
| String | getMode()
 The package group origin restriction setting. | 
| Long | getRepositoriesCount()
 The number of repositories in the allowed repository list. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setEffectiveMode(String effectiveMode)
 The effective package group origin restriction setting. | 
| void | setInheritedFrom(PackageGroupReference inheritedFrom)
 The parent package group that the package group origin restrictions are inherited from. | 
| void | setMode(String mode)
 The package group origin restriction setting. | 
| void | setRepositoriesCount(Long repositoriesCount)
 The number of repositories in the allowed repository list. | 
| String | toString()Returns a string representation of this object. | 
| PackageGroupOriginRestriction | withEffectiveMode(PackageGroupOriginRestrictionMode effectiveMode)
 The effective package group origin restriction setting. | 
| PackageGroupOriginRestriction | withEffectiveMode(String effectiveMode)
 The effective package group origin restriction setting. | 
| PackageGroupOriginRestriction | withInheritedFrom(PackageGroupReference inheritedFrom)
 The parent package group that the package group origin restrictions are inherited from. | 
| PackageGroupOriginRestriction | withMode(PackageGroupOriginRestrictionMode mode)
 The package group origin restriction setting. | 
| PackageGroupOriginRestriction | withMode(String mode)
 The package group origin restriction setting. | 
| PackageGroupOriginRestriction | withRepositoriesCount(Long repositoriesCount)
 The number of repositories in the allowed repository list. | 
public void setMode(String mode)
 The package group origin restriction setting. If the value of mode is ALLOW,
 ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is
 the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the
 value of mode of the first parent group which does not have a value of INHERIT.
 
mode - The package group origin restriction setting. If the value of mode is ALLOW,
        ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of
        effectiveMode is the same. Otherwise, when the value is INHERIT, then the value
        of effectiveMode is the value of mode of the first parent group which does not
        have a value of INHERIT.PackageGroupOriginRestrictionModepublic String getMode()
 The package group origin restriction setting. If the value of mode is ALLOW,
 ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is
 the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the
 value of mode of the first parent group which does not have a value of INHERIT.
 
mode is ALLOW,
         ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of
         effectiveMode is the same. Otherwise, when the value is INHERIT, then the value
         of effectiveMode is the value of mode of the first parent group which does not
         have a value of INHERIT.PackageGroupOriginRestrictionModepublic PackageGroupOriginRestriction withMode(String mode)
 The package group origin restriction setting. If the value of mode is ALLOW,
 ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is
 the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the
 value of mode of the first parent group which does not have a value of INHERIT.
 
mode - The package group origin restriction setting. If the value of mode is ALLOW,
        ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of
        effectiveMode is the same. Otherwise, when the value is INHERIT, then the value
        of effectiveMode is the value of mode of the first parent group which does not
        have a value of INHERIT.PackageGroupOriginRestrictionModepublic PackageGroupOriginRestriction withMode(PackageGroupOriginRestrictionMode mode)
 The package group origin restriction setting. If the value of mode is ALLOW,
 ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is
 the same. Otherwise, when the value is INHERIT, then the value of effectiveMode is the
 value of mode of the first parent group which does not have a value of INHERIT.
 
mode - The package group origin restriction setting. If the value of mode is ALLOW,
        ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of
        effectiveMode is the same. Otherwise, when the value is INHERIT, then the value
        of effectiveMode is the value of mode of the first parent group which does not
        have a value of INHERIT.PackageGroupOriginRestrictionModepublic void setEffectiveMode(String effectiveMode)
 The effective package group origin restriction setting. If the value of mode is ALLOW,
 ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is
 the same. Otherwise, when the value of mode is INHERIT, then the value of
 effectiveMode is the value of mode of the first parent group which does not have a
 value of INHERIT.
 
effectiveMode - The effective package group origin restriction setting. If the value of mode is
        ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of
        effectiveMode is the same. Otherwise, when the value of mode is
        INHERIT, then the value of effectiveMode is the value of mode of
        the first parent group which does not have a value of INHERIT.PackageGroupOriginRestrictionModepublic String getEffectiveMode()
 The effective package group origin restriction setting. If the value of mode is ALLOW,
 ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is
 the same. Otherwise, when the value of mode is INHERIT, then the value of
 effectiveMode is the value of mode of the first parent group which does not have a
 value of INHERIT.
 
mode is
         ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of
         effectiveMode is the same. Otherwise, when the value of mode is
         INHERIT, then the value of effectiveMode is the value of mode of
         the first parent group which does not have a value of INHERIT.PackageGroupOriginRestrictionModepublic PackageGroupOriginRestriction withEffectiveMode(String effectiveMode)
 The effective package group origin restriction setting. If the value of mode is ALLOW,
 ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is
 the same. Otherwise, when the value of mode is INHERIT, then the value of
 effectiveMode is the value of mode of the first parent group which does not have a
 value of INHERIT.
 
effectiveMode - The effective package group origin restriction setting. If the value of mode is
        ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of
        effectiveMode is the same. Otherwise, when the value of mode is
        INHERIT, then the value of effectiveMode is the value of mode of
        the first parent group which does not have a value of INHERIT.PackageGroupOriginRestrictionModepublic PackageGroupOriginRestriction withEffectiveMode(PackageGroupOriginRestrictionMode effectiveMode)
 The effective package group origin restriction setting. If the value of mode is ALLOW,
 ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of effectiveMode is
 the same. Otherwise, when the value of mode is INHERIT, then the value of
 effectiveMode is the value of mode of the first parent group which does not have a
 value of INHERIT.
 
effectiveMode - The effective package group origin restriction setting. If the value of mode is
        ALLOW, ALLOW_SPECIFIC_REPOSITORIES, or BLOCK, then the value of
        effectiveMode is the same. Otherwise, when the value of mode is
        INHERIT, then the value of effectiveMode is the value of mode of
        the first parent group which does not have a value of INHERIT.PackageGroupOriginRestrictionModepublic void setInheritedFrom(PackageGroupReference inheritedFrom)
The parent package group that the package group origin restrictions are inherited from.
inheritedFrom - The parent package group that the package group origin restrictions are inherited from.public PackageGroupReference getInheritedFrom()
The parent package group that the package group origin restrictions are inherited from.
public PackageGroupOriginRestriction withInheritedFrom(PackageGroupReference inheritedFrom)
The parent package group that the package group origin restrictions are inherited from.
inheritedFrom - The parent package group that the package group origin restrictions are inherited from.public void setRepositoriesCount(Long repositoriesCount)
The number of repositories in the allowed repository list.
repositoriesCount - The number of repositories in the allowed repository list.public Long getRepositoriesCount()
The number of repositories in the allowed repository list.
public PackageGroupOriginRestriction withRepositoriesCount(Long repositoriesCount)
The number of repositories in the allowed repository list.
repositoriesCount - The number of repositories in the allowed repository list.public String toString()
toString in class ObjectObject.toString()public PackageGroupOriginRestriction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.