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.Builderconfiguration(Consumer<AgentConfiguration.Builder> configuration) AnAgentConfigurationobject that specifies if an agent profiles or not and for how long to return profiling data.configuration(AgentConfiguration configuration) AnAgentConfigurationobject 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, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods 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
-
configuration
An
AgentConfigurationobject that specifies if an agent profiles or not and for how long to return profiling data.- Parameters:
configuration- AnAgentConfigurationobject 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 theAgentConfigurationobject that specifies if an agent profiles or not and for how long to return profiling data.AgentConfiguration.Builderavoiding the need to create one manually viaAgentConfiguration.builder().When the
Consumercompletes,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:
-