Interface PackageGroupOriginRestriction.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<PackageGroupOriginRestriction.Builder,PackageGroupOriginRestriction>,SdkBuilder<PackageGroupOriginRestriction.Builder,PackageGroupOriginRestriction>,SdkPojo
- Enclosing class:
- PackageGroupOriginRestriction
public static interface PackageGroupOriginRestriction.Builder extends SdkPojo, CopyableBuilder<PackageGroupOriginRestriction.Builder,PackageGroupOriginRestriction>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PackageGroupOriginRestriction.BuildereffectiveMode(String effectiveMode)The effective package group origin restriction setting.PackageGroupOriginRestriction.BuildereffectiveMode(PackageGroupOriginRestrictionMode effectiveMode)The effective package group origin restriction setting.default PackageGroupOriginRestriction.BuilderinheritedFrom(Consumer<PackageGroupReference.Builder> inheritedFrom)The parent package group that the package group origin restrictions are inherited from.PackageGroupOriginRestriction.BuilderinheritedFrom(PackageGroupReference inheritedFrom)The parent package group that the package group origin restrictions are inherited from.PackageGroupOriginRestriction.Buildermode(String mode)The package group origin restriction setting.PackageGroupOriginRestriction.Buildermode(PackageGroupOriginRestrictionMode mode)The package group origin restriction setting.PackageGroupOriginRestriction.BuilderrepositoriesCount(Long repositoriesCount)The number of repositories in the allowed repository list.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
mode
PackageGroupOriginRestriction.Builder mode(String mode)
The package group origin restriction setting. If the value of
modeisALLOW,ALLOW_SPECIFIC_REPOSITORIES, orBLOCK, then the value ofeffectiveModeis the same. Otherwise, when the value isINHERIT, then the value ofeffectiveModeis the value ofmodeof the first parent group which does not have a value ofINHERIT.- Parameters:
mode- The package group origin restriction setting. If the value ofmodeisALLOW,ALLOW_SPECIFIC_REPOSITORIES, orBLOCK, then the value ofeffectiveModeis the same. Otherwise, when the value isINHERIT, then the value ofeffectiveModeis the value ofmodeof the first parent group which does not have a value ofINHERIT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PackageGroupOriginRestrictionMode,PackageGroupOriginRestrictionMode
-
mode
PackageGroupOriginRestriction.Builder mode(PackageGroupOriginRestrictionMode mode)
The package group origin restriction setting. If the value of
modeisALLOW,ALLOW_SPECIFIC_REPOSITORIES, orBLOCK, then the value ofeffectiveModeis the same. Otherwise, when the value isINHERIT, then the value ofeffectiveModeis the value ofmodeof the first parent group which does not have a value ofINHERIT.- Parameters:
mode- The package group origin restriction setting. If the value ofmodeisALLOW,ALLOW_SPECIFIC_REPOSITORIES, orBLOCK, then the value ofeffectiveModeis the same. Otherwise, when the value isINHERIT, then the value ofeffectiveModeis the value ofmodeof the first parent group which does not have a value ofINHERIT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PackageGroupOriginRestrictionMode,PackageGroupOriginRestrictionMode
-
effectiveMode
PackageGroupOriginRestriction.Builder effectiveMode(String effectiveMode)
The effective package group origin restriction setting. If the value of
modeisALLOW,ALLOW_SPECIFIC_REPOSITORIES, orBLOCK, then the value ofeffectiveModeis the same. Otherwise, when the value ofmodeisINHERIT, then the value ofeffectiveModeis the value ofmodeof the first parent group which does not have a value ofINHERIT.- Parameters:
effectiveMode- The effective package group origin restriction setting. If the value ofmodeisALLOW,ALLOW_SPECIFIC_REPOSITORIES, orBLOCK, then the value ofeffectiveModeis the same. Otherwise, when the value ofmodeisINHERIT, then the value ofeffectiveModeis the value ofmodeof the first parent group which does not have a value ofINHERIT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PackageGroupOriginRestrictionMode,PackageGroupOriginRestrictionMode
-
effectiveMode
PackageGroupOriginRestriction.Builder effectiveMode(PackageGroupOriginRestrictionMode effectiveMode)
The effective package group origin restriction setting. If the value of
modeisALLOW,ALLOW_SPECIFIC_REPOSITORIES, orBLOCK, then the value ofeffectiveModeis the same. Otherwise, when the value ofmodeisINHERIT, then the value ofeffectiveModeis the value ofmodeof the first parent group which does not have a value ofINHERIT.- Parameters:
effectiveMode- The effective package group origin restriction setting. If the value ofmodeisALLOW,ALLOW_SPECIFIC_REPOSITORIES, orBLOCK, then the value ofeffectiveModeis the same. Otherwise, when the value ofmodeisINHERIT, then the value ofeffectiveModeis the value ofmodeof the first parent group which does not have a value ofINHERIT.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
PackageGroupOriginRestrictionMode,PackageGroupOriginRestrictionMode
-
inheritedFrom
PackageGroupOriginRestriction.Builder inheritedFrom(PackageGroupReference inheritedFrom)
The parent package group that the package group origin restrictions are inherited from.
- Parameters:
inheritedFrom- The parent package group that the package group origin restrictions are inherited from.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inheritedFrom
default PackageGroupOriginRestriction.Builder inheritedFrom(Consumer<PackageGroupReference.Builder> inheritedFrom)
The parent package group that the package group origin restrictions are inherited from.
This is a convenience method that creates an instance of thePackageGroupReference.Builderavoiding the need to create one manually viaPackageGroupReference.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toinheritedFrom(PackageGroupReference).- Parameters:
inheritedFrom- a consumer that will call methods onPackageGroupReference.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
inheritedFrom(PackageGroupReference)
-
repositoriesCount
PackageGroupOriginRestriction.Builder repositoriesCount(Long repositoriesCount)
The number of repositories in the allowed repository list.
- Parameters:
repositoriesCount- The number of repositories in the allowed repository list.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-