Interface ScopeConfiguration.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<ScopeConfiguration.Builder,,ScopeConfiguration> SdkBuilder<ScopeConfiguration.Builder,,ScopeConfiguration> SdkPojo
- Enclosing class:
ScopeConfiguration
-
Method Summary
Modifier and TypeMethodDescriptiondefault ScopeConfiguration.BuilderaccountFilter(Consumer<AccountFilter.Builder> accountFilter) The account filter that determines which accounts are in scope.accountFilter(AccountFilter accountFilter) The account filter that determines which accounts are in scope.resourceScopes(Map<ScopeResourceType, ResourceScope> resourceScopes) The resource-level scoping configuration, keyed by resource type, that defines which resources within the selected accounts are in scope.resourceScopesWithStrings(Map<String, ResourceScope> resourceScopes) The resource-level scoping configuration, keyed by resource type, that defines which resources within the selected accounts are in scope.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, sdkFieldNameToField, sdkFields
-
Method Details
-
accountFilter
The account filter that determines which accounts are in scope. When set, exactly one of
includeAll,include, orexcludeis set.Organization administrators must include an account filter in every scope configuration. Single-account administrators must omit it: a scope without an account filter applies only to the administrator's own account. The presence of an account filter is fixed when the scope is created: an update can't add an account filter to a scope that was created without one, or remove the account filter from a scope that was created with one.
- Parameters:
accountFilter- The account filter that determines which accounts are in scope. When set, exactly one ofincludeAll,include, orexcludeis set.Organization administrators must include an account filter in every scope configuration. Single-account administrators must omit it: a scope without an account filter applies only to the administrator's own account. The presence of an account filter is fixed when the scope is created: an update can't add an account filter to a scope that was created without one, or remove the account filter from a scope that was created with one.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountFilter
The account filter that determines which accounts are in scope. When set, exactly one of
includeAll,include, orexcludeis set.Organization administrators must include an account filter in every scope configuration. Single-account administrators must omit it: a scope without an account filter applies only to the administrator's own account. The presence of an account filter is fixed when the scope is created: an update can't add an account filter to a scope that was created without one, or remove the account filter from a scope that was created with one.
This is a convenience method that creates an instance of theAccountFilter.Builderavoiding the need to create one manually viaAccountFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaccountFilter(AccountFilter).- Parameters:
accountFilter- a consumer that will call methods onAccountFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
resourceScopesWithStrings
The resource-level scoping configuration, keyed by resource type, that defines which resources within the selected accounts are in scope.
- Parameters:
resourceScopes- The resource-level scoping configuration, keyed by resource type, that defines which resources within the selected accounts are in scope.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceScopes
The resource-level scoping configuration, keyed by resource type, that defines which resources within the selected accounts are in scope.
- Parameters:
resourceScopes- The resource-level scoping configuration, keyed by resource type, that defines which resources within the selected accounts are in scope.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-