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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
mode
The package group origin restriction setting. If the value of
mode
isALLOW
,ALLOW_SPECIFIC_REPOSITORIES
, orBLOCK
, then the value ofeffectiveMode
is the same. Otherwise, when the value isINHERIT
, then the value ofeffectiveMode
is the value ofmode
of the first parent group which does not have a value ofINHERIT
.- Parameters:
mode
- The package group origin restriction setting. If the value ofmode
isALLOW
,ALLOW_SPECIFIC_REPOSITORIES
, orBLOCK
, then the value ofeffectiveMode
is the same. Otherwise, when the value isINHERIT
, then the value ofeffectiveMode
is the value ofmode
of 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
mode
isALLOW
,ALLOW_SPECIFIC_REPOSITORIES
, orBLOCK
, then the value ofeffectiveMode
is the same. Otherwise, when the value isINHERIT
, then the value ofeffectiveMode
is the value ofmode
of the first parent group which does not have a value ofINHERIT
.- Parameters:
mode
- The package group origin restriction setting. If the value ofmode
isALLOW
,ALLOW_SPECIFIC_REPOSITORIES
, orBLOCK
, then the value ofeffectiveMode
is the same. Otherwise, when the value isINHERIT
, then the value ofeffectiveMode
is the value ofmode
of 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
mode
isALLOW
,ALLOW_SPECIFIC_REPOSITORIES
, orBLOCK
, then the value ofeffectiveMode
is the same. Otherwise, when the value ofmode
isINHERIT
, then the value ofeffectiveMode
is the value ofmode
of the first parent group which does not have a value ofINHERIT
.- Parameters:
effectiveMode
- The effective package group origin restriction setting. If the value ofmode
isALLOW
,ALLOW_SPECIFIC_REPOSITORIES
, orBLOCK
, then the value ofeffectiveMode
is the same. Otherwise, when the value ofmode
isINHERIT
, then the value ofeffectiveMode
is the value ofmode
of 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
mode
isALLOW
,ALLOW_SPECIFIC_REPOSITORIES
, orBLOCK
, then the value ofeffectiveMode
is the same. Otherwise, when the value ofmode
isINHERIT
, then the value ofeffectiveMode
is the value ofmode
of the first parent group which does not have a value ofINHERIT
.- Parameters:
effectiveMode
- The effective package group origin restriction setting. If the value ofmode
isALLOW
,ALLOW_SPECIFIC_REPOSITORIES
, orBLOCK
, then the value ofeffectiveMode
is the same. Otherwise, when the value ofmode
isINHERIT
, then the value ofeffectiveMode
is the value ofmode
of 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.Builder
avoiding the need to create one manually viaPackageGroupReference.builder()
.When the
Consumer
completes,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.
-