Interface AddWorkloadResponse.Builder
- All Superinterfaces:
ApplicationInsightsResponse.Builder,AwsResponse.Builder,Buildable,CopyableBuilder<AddWorkloadResponse.Builder,,AddWorkloadResponse> SdkBuilder<AddWorkloadResponse.Builder,,AddWorkloadResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
AddWorkloadResponse
public static interface AddWorkloadResponse.Builder
extends ApplicationInsightsResponse.Builder, SdkPojo, CopyableBuilder<AddWorkloadResponse.Builder,AddWorkloadResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault AddWorkloadResponse.BuilderworkloadConfiguration(Consumer<WorkloadConfiguration.Builder> workloadConfiguration) The configuration settings of the workload.workloadConfiguration(WorkloadConfiguration workloadConfiguration) The configuration settings of the workload.workloadId(String workloadId) The ID of the workload.Methods inherited from interface software.amazon.awssdk.services.applicationinsights.model.ApplicationInsightsResponse.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
-
workloadId
The ID of the workload.
- Parameters:
workloadId- The ID of the workload.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workloadConfiguration
The configuration settings of the workload. The value is the escaped JSON of the configuration.
- Parameters:
workloadConfiguration- The configuration settings of the workload. The value is the escaped JSON of the configuration.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
workloadConfiguration
default AddWorkloadResponse.Builder workloadConfiguration(Consumer<WorkloadConfiguration.Builder> workloadConfiguration) The configuration settings of the workload. The value is the escaped JSON of the configuration.
This is a convenience method that creates an instance of theWorkloadConfiguration.Builderavoiding the need to create one manually viaWorkloadConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toworkloadConfiguration(WorkloadConfiguration).- Parameters:
workloadConfiguration- a consumer that will call methods onWorkloadConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-