public CodeDeliveryDetailsType withDeliveryMedium(DeliveryMediumType deliveryMedium) {
        this.deliveryMedium = deliveryMedium.toString();
        return this;
    }
<p>
The method that Amazon Cognito used to send the code.
</p>

@param deliveryMedium
       The method that Amazon Cognito used to send the code.
@return Returns a reference to this object so that method calls can be chained together.
@see DeliveryMediumType
aws-java-sdk-cognitoidp/src/main/java/com/amazonaws/services/cognitoidp/model/CodeDeliveryDetailsType.java