// 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 *ExportBundleInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "ExportBundleInput"}
	if s.BundleId == nil {
		invalidParams.Add(request.NewErrParamRequired("BundleId"))
	}
	if s.BundleId != nil && len(*s.BundleId) < 1 {
		invalidParams.Add(request.NewErrParamMinLen("BundleId", 1))
	}
	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}
func ( s * ExportBundleInput ) Validate ( ) error { invalidParams := request . ErrInvalidParams { Context : " " } if s . BundleId == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if s . BundleId != nil && len ( * s . BundleId ) < 1 { invalidParams . Add ( request . NewErrParamMinLen ( " " , 1 ) ) } 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 .