def codec_preset=(codec_preset)
      validator = EnumAttributeValidator.new('String', ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"])
      unless validator.valid?(codec_preset)
        fail ArgumentError, "invalid value for 'codec_preset', must be one of #{validator.allowable_values}."
      end
      @codec_preset = codec_preset
    end
def codec_preset=(codec_preset)
      validator = EnumAttributeValidator.new('String', ["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow", "placebo"])
      unless validator.valid?(codec_preset)
        fail ArgumentError, "invalid value for 'codec_preset', must be one of #{validator.allowable_values}."
      end
      @codec_preset = codec_preset
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] codec_preset Object to be assigned