// 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 *CreateCustomVerificationEmailTemplateInput) Validate() error {
	invalidParams := request.ErrInvalidParams{Context: "CreateCustomVerificationEmailTemplateInput"}
	if s.FailureRedirectionURL == nil {
		invalidParams.Add(request.NewErrParamRequired("FailureRedirectionURL"))
	}
	if s.FromEmailAddress == nil {
		invalidParams.Add(request.NewErrParamRequired("FromEmailAddress"))
	}
	if s.SuccessRedirectionURL == nil {
		invalidParams.Add(request.NewErrParamRequired("SuccessRedirectionURL"))
	}
	if s.TemplateContent == nil {
		invalidParams.Add(request.NewErrParamRequired("TemplateContent"))
	}
	if s.TemplateName == nil {
		invalidParams.Add(request.NewErrParamRequired("TemplateName"))
	}
	if s.TemplateSubject == nil {
		invalidParams.Add(request.NewErrParamRequired("TemplateSubject"))
	}
	if invalidParams.Len() > 0 {
		return invalidParams
	}
	return nil
}
func ( s * CreateCustomVerificationEmailTemplateInput ) Validate ( ) error { invalidParams := request . ErrInvalidParams { Context : " " } if s . FailureRedirectionURL == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if s . FromEmailAddress == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if s . SuccessRedirectionURL == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if s . TemplateContent == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if s . TemplateName == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } if s . TemplateSubject == nil { invalidParams . Add ( request . NewErrParamRequired ( " " ) ) } 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 .