def aspect_mode=(aspect_mode)
      validator = EnumAttributeValidator.new('String', ["preserve", "constrain", "letterbox", "pad", "fill (crop)", "stretch", "center"])
      unless validator.valid?(aspect_mode)
        fail ArgumentError, "invalid value for 'aspect_mode', must be one of #{validator.allowable_values}."
      end
      @aspect_mode = aspect_mode
    end
def aspect_mode=(aspect_mode)
      validator = EnumAttributeValidator.new('String', ["preserve", "constrain", "letterbox", "pad", "fill (crop)", "stretch", "center"])
      unless validator.valid?(aspect_mode)
        fail ArgumentError, "invalid value for 'aspect_mode', must be one of #{validator.allowable_values}."
      end
      @aspect_mode = aspect_mode
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] aspect_mode Object to be assigned