public VideoConfiguration withCodec(String codec) {
        setCodec(codec);
        return this;
    }
<p>
Codec used for the video encoding.
</p>

@param codec
       Codec used for the video encoding.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ivs/src/main/java/com/amazonaws/services/ivs/model/VideoConfiguration.java