Interface ConfigureAgentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CodeGuruProfilerResponse.Builder
,CopyableBuilder<ConfigureAgentResponse.Builder,
,ConfigureAgentResponse> SdkBuilder<ConfigureAgentResponse.Builder,
,ConfigureAgentResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ConfigureAgentResponse
public static interface ConfigureAgentResponse.Builder
extends CodeGuruProfilerResponse.Builder, SdkPojo, CopyableBuilder<ConfigureAgentResponse.Builder,ConfigureAgentResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault ConfigureAgentResponse.Builder
configuration
(Consumer<AgentConfiguration.Builder> configuration) AnAgentConfiguration
object that specifies if an agent profiles or not and for how long to return profiling data.configuration
(AgentConfiguration configuration) AnAgentConfiguration
object that specifies if an agent profiles or not and for how long to return profiling data.Methods inherited from interface software.amazon.awssdk.services.codeguruprofiler.model.CodeGuruProfilerResponse.Builder
build, responseMetadata, responseMetadata
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
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
configuration
An
AgentConfiguration
object that specifies if an agent profiles or not and for how long to return profiling data.- Parameters:
configuration
- AnAgentConfiguration
object that specifies if an agent profiles or not and for how long to return profiling data.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default ConfigureAgentResponse.Builder configuration(Consumer<AgentConfiguration.Builder> configuration) An
This is a convenience method that creates an instance of theAgentConfiguration
object that specifies if an agent profiles or not and for how long to return profiling data.AgentConfiguration.Builder
avoiding the need to create one manually viaAgentConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(AgentConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onAgentConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-