Interface ModifyTrafficMirrorSessionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ModifyTrafficMirrorSessionResponse.Builder,,ModifyTrafficMirrorSessionResponse> Ec2Response.Builder,SdkBuilder<ModifyTrafficMirrorSessionResponse.Builder,,ModifyTrafficMirrorSessionResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ModifyTrafficMirrorSessionResponse
public static interface ModifyTrafficMirrorSessionResponse.Builder
extends Ec2Response.Builder, SdkPojo, CopyableBuilder<ModifyTrafficMirrorSessionResponse.Builder,ModifyTrafficMirrorSessionResponse>
-
Method Summary
Modifier and TypeMethodDescriptiontrafficMirrorSession(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
ModifyTrafficMirrorSessionResponse.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 ModifyTrafficMirrorSessionResponse.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:
-