code: func (s *AudioCodecSettings) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "AudioCodecSettings"}
  	if s.Ac3Settings != nil {
  		if err := s.Ac3Settings.Validate(); err != nil {
  			invalidParams.AddNested("Ac3Settings", err.(request.ErrInvalidParams))
  		}
  	}
  	if s.Eac3Settings != nil {
  		if err := s.Eac3Settings.Validate(); err != nil {
  			invalidParams.AddNested("Eac3Settings", 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.