def domain_name=(domain_name)
      if domain_name.nil?
        fail ArgumentError, "domain_name cannot be nil"
      end

      if domain_name.to_s.length > 255
        fail ArgumentError, "invalid value for 'domain_name', the character length must be smaller than or equal to 255."
      end

      if domain_name.to_s.length < 1
        fail ArgumentError, "invalid value for 'domain_name', the character length must be great than or equal to 1."
      end

      @domain_name = domain_name
    end
def domain_name=(domain_name)
      if domain_name.nil?
        fail ArgumentError, "domain_name cannot be nil"
      end

      if domain_name.to_s.length > 255
        fail ArgumentError, "invalid value for 'domain_name', the character length must be smaller than or equal to 255."
      end

      if domain_name.to_s.length < 1
        fail ArgumentError, "invalid value for 'domain_name', the character length must be great than or equal to 1."
      end

      @domain_name = domain_name
    end
Custom attribute writer method with validation
 @param [Object] domain_name Value to be assigned