Interface GetResourceResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CloudControlResponse.Builder
,CopyableBuilder<GetResourceResponse.Builder,
,GetResourceResponse> SdkBuilder<GetResourceResponse.Builder,
,GetResourceResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
GetResourceResponse
public static interface GetResourceResponse.Builder
extends CloudControlResponse.Builder, SdkPojo, CopyableBuilder<GetResourceResponse.Builder,GetResourceResponse>
-
Method Summary
Modifier and TypeMethodDescriptiondefault GetResourceResponse.Builder
resourceDescription
(Consumer<ResourceDescription.Builder> resourceDescription) Sets the value of the ResourceDescription property for this object.resourceDescription
(ResourceDescription resourceDescription) Sets the value of the ResourceDescription property for this object.The name of the resource type.Methods inherited from interface software.amazon.awssdk.services.cloudcontrol.model.CloudControlResponse.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
-
typeName
The name of the resource type.
- Parameters:
typeName
- The name of the resource type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceDescription
Sets the value of the ResourceDescription property for this object.- Parameters:
resourceDescription
- The new value for the ResourceDescription property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceDescription
default GetResourceResponse.Builder resourceDescription(Consumer<ResourceDescription.Builder> resourceDescription) Sets the value of the ResourceDescription property for this object. This is a convenience method that creates an instance of theResourceDescription.Builder
avoiding the need to create one manually viaResourceDescription.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceDescription(ResourceDescription)
.- Parameters:
resourceDescription
- a consumer that will call methods onResourceDescription.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-