Interface PackageGroupOriginRestriction.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PackageGroupOriginRestriction.Builder,,PackageGroupOriginRestriction> SdkBuilder<PackageGroupOriginRestriction.Builder,,PackageGroupOriginRestriction> SdkPojo
- Enclosing class:
PackageGroupOriginRestriction
-
Method Summary
Modifier and TypeMethodDescriptioneffectiveMode(String effectiveMode) The effective package group origin restriction setting.effectiveMode(PackageGroupOriginRestrictionMode effectiveMode) The effective package group origin restriction setting.inheritedFrom(Consumer<PackageGroupReference.Builder> inheritedFrom) The parent package group that the package group origin restrictions are inherited from.inheritedFrom(PackageGroupReference inheritedFrom) The parent package group that the package group origin restrictions are inherited from.The package group origin restriction setting.The package group origin restriction setting.repositoriesCount(Long repositoriesCount) The number of repositories in the allowed repository list.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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:
-
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:
-
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:
-
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:
-
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:
-
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.
-