code: func (s *GetApiMappingInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "GetApiMappingInput"}
  	if s.ApiMappingId == nil {
  		invalidParams.Add(request.NewErrParamRequired("ApiMappingId"))
  	}
  	if s.ApiMappingId != nil && len(*s.ApiMappingId) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("ApiMappingId", 1))
  	}
  	if s.DomainName == nil {
  		invalidParams.Add(request.NewErrParamRequired("DomainName"))
  	}
  	if s.DomainName != nil && len(*s.DomainName) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("DomainName", 1))
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }
docs: // Validate inspects the fields of the type to determine if they are valid.