Interface AccountState.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AccountState.Builder,AccountState>,SdkBuilder<AccountState.Builder,AccountState>,SdkPojo
- Enclosing class:
- AccountState
public static interface AccountState.Builder extends SdkPojo, CopyableBuilder<AccountState.Builder,AccountState>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description AccountState.BuilderaccountId(String accountId)The Amazon Web Services account ID.default AccountState.BuilderresourceState(Consumer<ResourceState.Builder> resourceState)An object detailing which resources Amazon Inspector is enabled to scan for the account.AccountState.BuilderresourceState(ResourceState resourceState)An object detailing which resources Amazon Inspector is enabled to scan for the account.default AccountState.Builderstate(Consumer<State.Builder> state)An object detailing the status of Amazon Inspector for the account.AccountState.Builderstate(State state)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, sdkFields
-
-
-
-
Method Detail
-
accountId
AccountState.Builder accountId(String 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
AccountState.Builder resourceState(ResourceState 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
default AccountState.Builder resourceState(Consumer<ResourceState.Builder> 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.Builderavoiding the need to create one manually viaResourceState.builder().When the
Consumercompletes,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:
resourceState(ResourceState)
-
state
AccountState.Builder state(State 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
default AccountState.Builder state(Consumer<State.Builder> state)
An object detailing the status of Amazon Inspector for the account.
This is a convenience method that creates an instance of theState.Builderavoiding the need to create one manually viaState.builder().When the
Consumercompletes,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:
state(State)
-
-