code: func (s *UpdateChannelInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "UpdateChannelInput"}
  	if s.ChannelId == nil {
  		invalidParams.Add(request.NewErrParamRequired("ChannelId"))
  	}
  	if s.ChannelId != nil && len(*s.ChannelId) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("ChannelId", 1))
  	}
  	if s.Destinations != nil {
  		for i, v := range s.Destinations {
  			if v == nil {
  				continue
  			}
  			if err := v.Validate(); err != nil {
  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Destinations", i), err.(request.ErrInvalidParams))
  			}
  		}
  	}
  	if s.EncoderSettings != nil {
  		if err := s.EncoderSettings.Validate(); err != nil {
  			invalidParams.AddNested("EncoderSettings", err.(request.ErrInvalidParams))
  		}
  	}
  	if s.InputAttachments != nil {
  		for i, v := range s.InputAttachments {
  			if v == nil {
  				continue
  			}
  			if err := v.Validate(); err != nil {
  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "InputAttachments", i), err.(request.ErrInvalidParams))
  			}
  		}
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.