// Validate inspects the fields of the type to determine if they are valid.
Validate inspects the fields of the type to determine if they are valid.
// Validate inspects the fields of the type to determine if they are valid .
func (s *AntennaDownlinkDemodDecodeConfig) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "AntennaDownlinkDemodDecodeConfig"}
	if s.DecodeConfig == nil {
		invalidParams.Add(request.NewErrParamRequired("DecodeConfig"))
	}
	if s.DemodulationConfig == nil {
		invalidParams.Add(request.NewErrParamRequired("DemodulationConfig"))
	}
	if s.SpectrumConfig == nil {
		invalidParams.Add(request.NewErrParamRequired("SpectrumConfig"))
	}
	if s.DecodeConfig != nil {
		if err := s.DecodeConfig.Validate(); err != nil {
			invalidParams.AddNested("DecodeConfig", err.(request.ErrInvalidParams))
		}
	}
	if s.DemodulationConfig != nil {
		if err := s.DemodulationConfig.Validate(); err != nil {
			invalidParams.AddNested("DemodulationConfig", err.(request.ErrInvalidParams))
		}
	}
	if s.SpectrumConfig != nil {
		if err := s.SpectrumConfig.Validate(); err != nil {
			invalidParams.AddNested("SpectrumConfig", err.(request.ErrInvalidParams))
		}
	}
	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}
func ( s * AntennaDownlinkDemodDecodeConfig ) Validate ( ) error { invalidParams := request . ErrInvalidParams { Context : " " } if s . DecodeConfig == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if s . DemodulationConfig == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if s . SpectrumConfig == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if s . DecodeConfig != nil { if err := s . DecodeConfig . Validate ( ) ; err != nil { invalidParams . AddNested ( " " , err . ( request . ErrInvalidParams ) ) } } if s . DemodulationConfig != nil { if err := s . DemodulationConfig . Validate ( ) ; err != nil { invalidParams . AddNested ( " " , err . ( request . ErrInvalidParams ) ) } } if s . SpectrumConfig != nil { if err := s . SpectrumConfig . Validate ( ) ; err != nil { invalidParams . AddNested ( " " , err . ( request . ErrInvalidParams ) ) } } if invalidParams . Len ( ) > 0 { return invalidParams } return nil }
Validate inspects the fields of the type to determine if they are valid.
Validate inspects the fields of the type to determine if they are valid .