Interface GetSnapshotBlockPublicAccessStateResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<GetSnapshotBlockPublicAccessStateResponse.Builder,GetSnapshotBlockPublicAccessStateResponse>
,Ec2Response.Builder
,SdkBuilder<GetSnapshotBlockPublicAccessStateResponse.Builder,GetSnapshotBlockPublicAccessStateResponse>
,SdkPojo
,SdkResponse.Builder
- Enclosing class:
- GetSnapshotBlockPublicAccessStateResponse
public static interface GetSnapshotBlockPublicAccessStateResponse.Builder extends Ec2Response.Builder, SdkPojo, CopyableBuilder<GetSnapshotBlockPublicAccessStateResponse.Builder,GetSnapshotBlockPublicAccessStateResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GetSnapshotBlockPublicAccessStateResponse.Builder
managedBy(String managedBy)
The entity that manages the state for block public access for snapshots.GetSnapshotBlockPublicAccessStateResponse.Builder
managedBy(ManagedBy managedBy)
The entity that manages the state for block public access for snapshots.GetSnapshotBlockPublicAccessStateResponse.Builder
state(String state)
The current state of block public access for snapshots.GetSnapshotBlockPublicAccessStateResponse.Builder
state(SnapshotBlockPublicAccessState state)
The current state of block public access for snapshots.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadata
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
state
GetSnapshotBlockPublicAccessStateResponse.Builder state(String state)
The current state of block public access for snapshots. Possible values include:
-
block-all-sharing
- All public sharing of snapshots is blocked. Users in the account can't request new public sharing. Additionally, snapshots that were already publicly shared are treated as private and are not publicly available. -
block-new-sharing
- Only new public sharing of snapshots is blocked. Users in the account can't request new public sharing. However, snapshots that were already publicly shared, remain publicly available. -
unblocked
- Public sharing is not blocked. Users can publicly share snapshots.
- Parameters:
state
- The current state of block public access for snapshots. Possible values include:-
block-all-sharing
- All public sharing of snapshots is blocked. Users in the account can't request new public sharing. Additionally, snapshots that were already publicly shared are treated as private and are not publicly available. -
block-new-sharing
- Only new public sharing of snapshots is blocked. Users in the account can't request new public sharing. However, snapshots that were already publicly shared, remain publicly available. -
unblocked
- Public sharing is not blocked. Users can publicly share snapshots.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotBlockPublicAccessState
,SnapshotBlockPublicAccessState
-
-
state
GetSnapshotBlockPublicAccessStateResponse.Builder state(SnapshotBlockPublicAccessState state)
The current state of block public access for snapshots. Possible values include:
-
block-all-sharing
- All public sharing of snapshots is blocked. Users in the account can't request new public sharing. Additionally, snapshots that were already publicly shared are treated as private and are not publicly available. -
block-new-sharing
- Only new public sharing of snapshots is blocked. Users in the account can't request new public sharing. However, snapshots that were already publicly shared, remain publicly available. -
unblocked
- Public sharing is not blocked. Users can publicly share snapshots.
- Parameters:
state
- The current state of block public access for snapshots. Possible values include:-
block-all-sharing
- All public sharing of snapshots is blocked. Users in the account can't request new public sharing. Additionally, snapshots that were already publicly shared are treated as private and are not publicly available. -
block-new-sharing
- Only new public sharing of snapshots is blocked. Users in the account can't request new public sharing. However, snapshots that were already publicly shared, remain publicly available. -
unblocked
- Public sharing is not blocked. Users can publicly share snapshots.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
SnapshotBlockPublicAccessState
,SnapshotBlockPublicAccessState
-
-
managedBy
GetSnapshotBlockPublicAccessStateResponse.Builder managedBy(String managedBy)
The entity that manages the state for block public access for snapshots. Possible values include:
-
account
- The state is managed by the account. -
declarative-policy
- The state is managed by a declarative policy and can't be modified by the account.
- Parameters:
managedBy
- The entity that manages the state for block public access for snapshots. Possible values include:-
account
- The state is managed by the account. -
declarative-policy
- The state is managed by a declarative policy and can't be modified by the account.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ManagedBy
,ManagedBy
-
-
managedBy
GetSnapshotBlockPublicAccessStateResponse.Builder managedBy(ManagedBy managedBy)
The entity that manages the state for block public access for snapshots. Possible values include:
-
account
- The state is managed by the account. -
declarative-policy
- The state is managed by a declarative policy and can't be modified by the account.
- Parameters:
managedBy
- The entity that manages the state for block public access for snapshots. Possible values include:-
account
- The state is managed by the account. -
declarative-policy
- The state is managed by a declarative policy and can't be modified by the account.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ManagedBy
,ManagedBy
-
-
-