Interface CreateTrafficMirrorSessionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateTrafficMirrorSessionResponse.Builder,,CreateTrafficMirrorSessionResponse> Ec2Response.Builder,SdkBuilder<CreateTrafficMirrorSessionResponse.Builder,,CreateTrafficMirrorSessionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateTrafficMirrorSessionResponse
public static interface CreateTrafficMirrorSessionResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<CreateTrafficMirrorSessionResponse.Builder,CreateTrafficMirrorSessionResponse>
-
Method Summary
Modifier and TypeMethodDescriptionclientToken(String clientToken) Unique, case-sensitive identifier that you provide to ensure the idempotency of the request.trafficMirrorSession(Consumer<TrafficMirrorSession.Builder> trafficMirrorSession) Information about the Traffic Mirror session.trafficMirrorSession(TrafficMirrorSession trafficMirrorSession) Information about the Traffic Mirror session.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Response.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
trafficMirrorSession
CreateTrafficMirrorSessionResponse.Builder trafficMirrorSession(TrafficMirrorSession trafficMirrorSession) Information about the Traffic Mirror session.
- Parameters:
trafficMirrorSession- Information about the Traffic Mirror session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
trafficMirrorSession
default CreateTrafficMirrorSessionResponse.Builder trafficMirrorSession(Consumer<TrafficMirrorSession.Builder> trafficMirrorSession) Information about the Traffic Mirror session.
This is a convenience method that creates an instance of theTrafficMirrorSession.Builderavoiding the need to create one manually viaTrafficMirrorSession.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totrafficMirrorSession(TrafficMirrorSession).- Parameters:
trafficMirrorSession- a consumer that will call methods onTrafficMirrorSession.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.
- Parameters:
clientToken- Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-