public TransportStream withCodec(String codec) {
        setCodec(codec);
        return this;
    }
The codec used by the stream.

@param codec
       The codec used by the stream.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediaconnect/src/main/java/com/amazonaws/services/mediaconnect/model/TransportStream.java