Interface UpdatedA2aAgentCardDescriptor.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UpdatedA2aAgentCardDescriptor.Builder,,UpdatedA2aAgentCardDescriptor> SdkBuilder<UpdatedA2aAgentCardDescriptor.Builder,,UpdatedA2aAgentCardDescriptor> SdkPojo
- Enclosing class:
UpdatedA2aAgentCardDescriptor
@Mutable
@NotThreadSafe
public static interface UpdatedA2aAgentCardDescriptor.Builder
extends SdkPojo, CopyableBuilder<UpdatedA2aAgentCardDescriptor.Builder,UpdatedA2aAgentCardDescriptor>
-
Method Summary
Modifier and TypeMethodDescriptionoptionalValue(Consumer<UpdatedA2aAgentCardDescriptorFields.Builder> optionalValue) The value to set for this field.optionalValue(UpdatedA2aAgentCardDescriptorFields optionalValue) The value to set for this field.Methods 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, sdkFieldNameToField, sdkFields
-
Method Details
-
optionalValue
UpdatedA2aAgentCardDescriptor.Builder optionalValue(UpdatedA2aAgentCardDescriptorFields optionalValue) The value to set for this field. Omit the wrapper to leave the field unchanged.
- Parameters:
optionalValue- The value to set for this field. Omit the wrapper to leave the field unchanged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
optionalValue
default UpdatedA2aAgentCardDescriptor.Builder optionalValue(Consumer<UpdatedA2aAgentCardDescriptorFields.Builder> optionalValue) The value to set for this field. Omit the wrapper to leave the field unchanged.
This is a convenience method that creates an instance of theUpdatedA2aAgentCardDescriptorFields.Builderavoiding the need to create one manually viaUpdatedA2aAgentCardDescriptorFields.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooptionalValue(UpdatedA2aAgentCardDescriptorFields).- Parameters:
optionalValue- a consumer that will call methods onUpdatedA2aAgentCardDescriptorFields.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-