Interface AccountState.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<AccountState.Builder,
,AccountState> SdkBuilder<AccountState.Builder,
,AccountState> SdkPojo
- Enclosing class:
AccountState
@Mutable
@NotThreadSafe
public static interface AccountState.Builder
extends SdkPojo, CopyableBuilder<AccountState.Builder,AccountState>
-
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Web Services account ID.default AccountState.Builder
resourceState
(Consumer<ResourceState.Builder> resourceState) An object detailing which resources Amazon Inspector is enabled to scan for the account.resourceState
(ResourceState resourceState) An object detailing which resources Amazon Inspector is enabled to scan for the account.default AccountState.Builder
state
(Consumer<State.Builder> state) An object detailing the status of Amazon Inspector for the account.An object detailing the status of Amazon Inspector for the account.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 Details
-
accountId
The Amazon Web Services account ID.
- Parameters:
accountId
- The Amazon Web Services account ID.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceState
An object detailing which resources Amazon Inspector is enabled to scan for the account.
- Parameters:
resourceState
- An object detailing which resources Amazon Inspector is enabled to scan for the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceState
An object detailing which resources Amazon Inspector is enabled to scan for the account.
This is a convenience method that creates an instance of theResourceState.Builder
avoiding the need to create one manually viaResourceState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceState(ResourceState)
.- Parameters:
resourceState
- a consumer that will call methods onResourceState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
state
An object detailing the status of Amazon Inspector for the account.
- Parameters:
state
- An object detailing the status of Amazon Inspector for the account.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
An object detailing the status of Amazon Inspector for the account.
This is a convenience method that creates an instance of theState.Builder
avoiding the need to create one manually viaState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tostate(State)
.- Parameters:
state
- a consumer that will call methods onState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-