Interface ReturnInformation.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ReturnInformation.Builder,ReturnInformation>,SdkBuilder<ReturnInformation.Builder,ReturnInformation>,SdkPojo
- Enclosing class:
- ReturnInformation
public static interface ReturnInformation.Builder extends SdkPojo, CopyableBuilder<ReturnInformation.Builder,ReturnInformation>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ReturnInformation.BuilderreplacementOrderArn(String replacementOrderArn)The Amazon Resource Name (ARN) of the replacement order.ReturnInformation.BuilderreturnReason(String returnReason)The reason for the return.default ReturnInformation.BuildershippingAddress(Consumer<Address.Builder> shippingAddress)The shipping address.ReturnInformation.BuildershippingAddress(Address shippingAddress)The shipping address.ReturnInformation.BuildershippingLabel(String shippingLabel)The URL of the shipping label.-
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
-
-
-
-
Method Detail
-
replacementOrderArn
ReturnInformation.Builder replacementOrderArn(String replacementOrderArn)
The Amazon Resource Name (ARN) of the replacement order.
- Parameters:
replacementOrderArn- The Amazon Resource Name (ARN) of the replacement order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
returnReason
ReturnInformation.Builder returnReason(String returnReason)
The reason for the return. If the return request did not include a reason for the return, this value is null.
- Parameters:
returnReason- The reason for the return. If the return request did not include a reason for the return, this value is null.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shippingAddress
ReturnInformation.Builder shippingAddress(Address shippingAddress)
The shipping address.
- Parameters:
shippingAddress- The shipping address.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
shippingAddress
default ReturnInformation.Builder shippingAddress(Consumer<Address.Builder> shippingAddress)
The shipping address.
This is a convenience method that creates an instance of theAddress.Builderavoiding the need to create one manually viaAddress.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toshippingAddress(Address).- Parameters:
shippingAddress- a consumer that will call methods onAddress.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
shippingAddress(Address)
-
shippingLabel
ReturnInformation.Builder shippingLabel(String shippingLabel)
The URL of the shipping label. The shipping label is available for download only if the status of the network resource is
PENDING_RETURN. For more information, see Return a radio unit.- Parameters:
shippingLabel- The URL of the shipping label. The shipping label is available for download only if the status of the network resource isPENDING_RETURN. For more information, see Return a radio unit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-