code: func (s *StaticKeySettings) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "StaticKeySettings"}
  	if s.StaticKeyValue == nil {
  		invalidParams.Add(request.NewErrParamRequired("StaticKeyValue"))
  	}
  	if s.StaticKeyValue != nil && len(*s.StaticKeyValue) < 32 {
  		invalidParams.Add(request.NewErrParamMinLen("StaticKeyValue", 32))
  	}
  	if s.KeyProviderServer != nil {
  		if err := s.KeyProviderServer.Validate(); err != nil {
  			invalidParams.AddNested("KeyProviderServer", 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.