docs: func (s *CreateTapeWithBarcodeInput) Validate() error {
  	invalidParams := request.ErrInvalidParams{Context: "CreateTapeWithBarcodeInput"}
  	if s.GatewayARN == nil {
  		invalidParams.Add(request.NewErrParamRequired("GatewayARN"))
  	}
  	if s.GatewayARN != nil && len(*s.GatewayARN) < 50 {
  		invalidParams.Add(request.NewErrParamMinLen("GatewayARN", 50))
  	}
  	if s.KMSKey != nil && len(*s.KMSKey) < 7 {
  		invalidParams.Add(request.NewErrParamMinLen("KMSKey", 7))
  	}
  	if s.PoolId != nil && len(*s.PoolId) < 1 {
  		invalidParams.Add(request.NewErrParamMinLen("PoolId", 1))
  	}
  	if s.TapeBarcode == nil {
  		invalidParams.Add(request.NewErrParamRequired("TapeBarcode"))
  	}
  	if s.TapeBarcode != nil && len(*s.TapeBarcode) < 7 {
  		invalidParams.Add(request.NewErrParamMinLen("TapeBarcode", 7))
  	}
  	if s.TapeSizeInBytes == nil {
  		invalidParams.Add(request.NewErrParamRequired("TapeSizeInBytes"))
  	}
  	if s.Tags != nil {
  		for i, v := range s.Tags {
  			if v == nil {
  				continue
  			}
  			if err := v.Validate(); err != nil {
  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams))
  			}
  		}
  	}
  
  	if invalidParams.Len() > 0 {
  		return invalidParams
  	}
  	return nil
  }