def stretch=(stretch)
      validator = EnumAttributeValidator.new('String', ["None", "PageWidth", "PageHeight", "PageArea"])
      if stretch.to_i == 0
        unless validator.valid?(stretch)
          raise ArgumentError, "invalid value for 'stretch', must be one of #{validator.allowable_values}."
        end
        @stretch = stretch
      else
        @stretch = validator.allowable_values[stretch.to_i]
      end
    end
def stretch=(stretch)
      validator = EnumAttributeValidator.new('String', ["None", "PageWidth", "PageHeight", "PageArea"])
      if stretch.to_i == 0
        unless validator.valid?(stretch)
          raise ArgumentError, "invalid value for 'stretch', must be one of #{validator.allowable_values}."
        end
        @stretch = stretch
      else
        @stretch = validator.allowable_values[stretch.to_i]
      end
    end
Custom attribute writer method checking allowed values (enum).
 @param [Object] stretch Object to be assigned