public EndpointRequest withChannelType(ChannelType channelType) {
        this.channelType = channelType.toString();
        return this;
    }
<p>
The channel to use when sending messages or push notifications to the endpoint.
</p>

@param channelType
       The channel to use when sending messages or push notifications to the endpoint.
@return Returns a reference to this object so that method calls can be chained together.
@see ChannelType
aws-java-sdk-pinpoint/src/main/java/com/amazonaws/services/pinpoint/model/EndpointRequest.java