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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ConfigureAgentResponse.Builderconfiguration(Consumer<AgentConfiguration.Builder> configuration)AnAgentConfigurationobject that specifies if an agent profiles or not and for how long to return profiling data.ConfigureAgentResponse.Builderconfiguration(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, 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 Detail
-
configuration
ConfigureAgentResponse.Builder configuration(AgentConfiguration 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:
configuration(AgentConfiguration)
-
-