build_test.go 181 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585
  1. package query_test
  2. import (
  3. "bytes"
  4. "encoding/json"
  5. "encoding/xml"
  6. "fmt"
  7. "io"
  8. "io/ioutil"
  9. "net/http"
  10. "net/url"
  11. "reflect"
  12. "testing"
  13. "time"
  14. "github.com/aws/aws-sdk-go/aws"
  15. "github.com/aws/aws-sdk-go/aws/client"
  16. "github.com/aws/aws-sdk-go/aws/client/metadata"
  17. "github.com/aws/aws-sdk-go/aws/request"
  18. "github.com/aws/aws-sdk-go/aws/signer/v4"
  19. "github.com/aws/aws-sdk-go/awstesting"
  20. "github.com/aws/aws-sdk-go/awstesting/unit"
  21. "github.com/aws/aws-sdk-go/private/protocol"
  22. "github.com/aws/aws-sdk-go/private/protocol/query"
  23. "github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil"
  24. "github.com/aws/aws-sdk-go/private/util"
  25. )
  26. var _ bytes.Buffer // always import bytes
  27. var _ http.Request
  28. var _ json.Marshaler
  29. var _ time.Time
  30. var _ xmlutil.XMLNode
  31. var _ xml.Attr
  32. var _ = ioutil.Discard
  33. var _ = util.Trim("")
  34. var _ = url.Values{}
  35. var _ = io.EOF
  36. var _ = aws.String
  37. var _ = fmt.Println
  38. var _ = reflect.Value{}
  39. func init() {
  40. protocol.RandReader = &awstesting.ZeroReader{}
  41. }
  42. // InputService1ProtocolTest provides the API operation methods for making requests to
  43. // . See this package's package overview docs
  44. // for details on the service.
  45. //
  46. // InputService1ProtocolTest methods are safe to use concurrently. It is not safe to
  47. // modify mutate any of the struct's properties though.
  48. type InputService1ProtocolTest struct {
  49. *client.Client
  50. }
  51. // New creates a new instance of the InputService1ProtocolTest client with a session.
  52. // If additional configuration is needed for the client instance use the optional
  53. // aws.Config parameter to add your extra config.
  54. //
  55. // Example:
  56. // // Create a InputService1ProtocolTest client from just a session.
  57. // svc := inputservice1protocoltest.New(mySession)
  58. //
  59. // // Create a InputService1ProtocolTest client with additional configuration
  60. // svc := inputservice1protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  61. func NewInputService1ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService1ProtocolTest {
  62. c := p.ClientConfig("inputservice1protocoltest", cfgs...)
  63. return newInputService1ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  64. }
  65. // newClient creates, initializes and returns a new service client instance.
  66. func newInputService1ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService1ProtocolTest {
  67. svc := &InputService1ProtocolTest{
  68. Client: client.New(
  69. cfg,
  70. metadata.ClientInfo{
  71. ServiceName: "InputService1ProtocolTest",
  72. ServiceID: "InputService1ProtocolTest",
  73. SigningName: signingName,
  74. SigningRegion: signingRegion,
  75. Endpoint: endpoint,
  76. APIVersion: "2014-01-01",
  77. },
  78. handlers,
  79. ),
  80. }
  81. // Handlers
  82. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  83. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  84. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  85. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  86. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  87. return svc
  88. }
  89. // newRequest creates a new request for a InputService1ProtocolTest operation and runs any
  90. // custom request initialization.
  91. func (c *InputService1ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  92. req := c.NewRequest(op, params, data)
  93. return req
  94. }
  95. const opInputService1TestCaseOperation1 = "OperationName"
  96. // InputService1TestCaseOperation1Request generates a "aws/request.Request" representing the
  97. // client's request for the InputService1TestCaseOperation1 operation. The "output" return
  98. // value will be populated with the request's response once the request completes
  99. // successfully.
  100. //
  101. // Use "Send" method on the returned Request to send the API call to the service.
  102. // the "output" return value is not valid until after Send returns without error.
  103. //
  104. // See InputService1TestCaseOperation1 for more information on using the InputService1TestCaseOperation1
  105. // API call, and error handling.
  106. //
  107. // This method is useful when you want to inject custom logic or configuration
  108. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  109. //
  110. //
  111. // // Example sending a request using the InputService1TestCaseOperation1Request method.
  112. // req, resp := client.InputService1TestCaseOperation1Request(params)
  113. //
  114. // err := req.Send()
  115. // if err == nil { // resp is now filled
  116. // fmt.Println(resp)
  117. // }
  118. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1Request(input *InputService1TestShapeInputService1TestCaseOperation1Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation1Output) {
  119. op := &request.Operation{
  120. Name: opInputService1TestCaseOperation1,
  121. HTTPPath: "/",
  122. }
  123. if input == nil {
  124. input = &InputService1TestShapeInputService1TestCaseOperation1Input{}
  125. }
  126. output = &InputService1TestShapeInputService1TestCaseOperation1Output{}
  127. req = c.newRequest(op, input, output)
  128. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  129. return
  130. }
  131. // InputService1TestCaseOperation1 API operation for .
  132. //
  133. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  134. // with awserr.Error's Code and Message methods to get detailed information about
  135. // the error.
  136. //
  137. // See the AWS API reference guide for 's
  138. // API operation InputService1TestCaseOperation1 for usage and error information.
  139. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1(input *InputService1TestShapeInputService1TestCaseOperation1Input) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
  140. req, out := c.InputService1TestCaseOperation1Request(input)
  141. return out, req.Send()
  142. }
  143. // InputService1TestCaseOperation1WithContext is the same as InputService1TestCaseOperation1 with the addition of
  144. // the ability to pass a context and additional request options.
  145. //
  146. // See InputService1TestCaseOperation1 for details on how to use this API operation.
  147. //
  148. // The context must be non-nil and will be used for request cancellation. If
  149. // the context is nil a panic will occur. In the future the SDK may create
  150. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  151. // for more information on using Contexts.
  152. func (c *InputService1ProtocolTest) InputService1TestCaseOperation1WithContext(ctx aws.Context, input *InputService1TestShapeInputService1TestCaseOperation1Input, opts ...request.Option) (*InputService1TestShapeInputService1TestCaseOperation1Output, error) {
  153. req, out := c.InputService1TestCaseOperation1Request(input)
  154. req.SetContext(ctx)
  155. req.ApplyOptions(opts...)
  156. return out, req.Send()
  157. }
  158. const opInputService1TestCaseOperation2 = "OperationName"
  159. // InputService1TestCaseOperation2Request generates a "aws/request.Request" representing the
  160. // client's request for the InputService1TestCaseOperation2 operation. The "output" return
  161. // value will be populated with the request's response once the request completes
  162. // successfully.
  163. //
  164. // Use "Send" method on the returned Request to send the API call to the service.
  165. // the "output" return value is not valid until after Send returns without error.
  166. //
  167. // See InputService1TestCaseOperation2 for more information on using the InputService1TestCaseOperation2
  168. // API call, and error handling.
  169. //
  170. // This method is useful when you want to inject custom logic or configuration
  171. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  172. //
  173. //
  174. // // Example sending a request using the InputService1TestCaseOperation2Request method.
  175. // req, resp := client.InputService1TestCaseOperation2Request(params)
  176. //
  177. // err := req.Send()
  178. // if err == nil { // resp is now filled
  179. // fmt.Println(resp)
  180. // }
  181. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2Request(input *InputService1TestShapeInputService1TestCaseOperation2Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation2Output) {
  182. op := &request.Operation{
  183. Name: opInputService1TestCaseOperation2,
  184. HTTPPath: "/",
  185. }
  186. if input == nil {
  187. input = &InputService1TestShapeInputService1TestCaseOperation2Input{}
  188. }
  189. output = &InputService1TestShapeInputService1TestCaseOperation2Output{}
  190. req = c.newRequest(op, input, output)
  191. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  192. return
  193. }
  194. // InputService1TestCaseOperation2 API operation for .
  195. //
  196. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  197. // with awserr.Error's Code and Message methods to get detailed information about
  198. // the error.
  199. //
  200. // See the AWS API reference guide for 's
  201. // API operation InputService1TestCaseOperation2 for usage and error information.
  202. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2(input *InputService1TestShapeInputService1TestCaseOperation2Input) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) {
  203. req, out := c.InputService1TestCaseOperation2Request(input)
  204. return out, req.Send()
  205. }
  206. // InputService1TestCaseOperation2WithContext is the same as InputService1TestCaseOperation2 with the addition of
  207. // the ability to pass a context and additional request options.
  208. //
  209. // See InputService1TestCaseOperation2 for details on how to use this API operation.
  210. //
  211. // The context must be non-nil and will be used for request cancellation. If
  212. // the context is nil a panic will occur. In the future the SDK may create
  213. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  214. // for more information on using Contexts.
  215. func (c *InputService1ProtocolTest) InputService1TestCaseOperation2WithContext(ctx aws.Context, input *InputService1TestShapeInputService1TestCaseOperation2Input, opts ...request.Option) (*InputService1TestShapeInputService1TestCaseOperation2Output, error) {
  216. req, out := c.InputService1TestCaseOperation2Request(input)
  217. req.SetContext(ctx)
  218. req.ApplyOptions(opts...)
  219. return out, req.Send()
  220. }
  221. const opInputService1TestCaseOperation3 = "OperationName"
  222. // InputService1TestCaseOperation3Request generates a "aws/request.Request" representing the
  223. // client's request for the InputService1TestCaseOperation3 operation. The "output" return
  224. // value will be populated with the request's response once the request completes
  225. // successfully.
  226. //
  227. // Use "Send" method on the returned Request to send the API call to the service.
  228. // the "output" return value is not valid until after Send returns without error.
  229. //
  230. // See InputService1TestCaseOperation3 for more information on using the InputService1TestCaseOperation3
  231. // API call, and error handling.
  232. //
  233. // This method is useful when you want to inject custom logic or configuration
  234. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  235. //
  236. //
  237. // // Example sending a request using the InputService1TestCaseOperation3Request method.
  238. // req, resp := client.InputService1TestCaseOperation3Request(params)
  239. //
  240. // err := req.Send()
  241. // if err == nil { // resp is now filled
  242. // fmt.Println(resp)
  243. // }
  244. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3Request(input *InputService1TestShapeInputService1TestCaseOperation3Input) (req *request.Request, output *InputService1TestShapeInputService1TestCaseOperation3Output) {
  245. op := &request.Operation{
  246. Name: opInputService1TestCaseOperation3,
  247. HTTPPath: "/",
  248. }
  249. if input == nil {
  250. input = &InputService1TestShapeInputService1TestCaseOperation3Input{}
  251. }
  252. output = &InputService1TestShapeInputService1TestCaseOperation3Output{}
  253. req = c.newRequest(op, input, output)
  254. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  255. return
  256. }
  257. // InputService1TestCaseOperation3 API operation for .
  258. //
  259. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  260. // with awserr.Error's Code and Message methods to get detailed information about
  261. // the error.
  262. //
  263. // See the AWS API reference guide for 's
  264. // API operation InputService1TestCaseOperation3 for usage and error information.
  265. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3(input *InputService1TestShapeInputService1TestCaseOperation3Input) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) {
  266. req, out := c.InputService1TestCaseOperation3Request(input)
  267. return out, req.Send()
  268. }
  269. // InputService1TestCaseOperation3WithContext is the same as InputService1TestCaseOperation3 with the addition of
  270. // the ability to pass a context and additional request options.
  271. //
  272. // See InputService1TestCaseOperation3 for details on how to use this API operation.
  273. //
  274. // The context must be non-nil and will be used for request cancellation. If
  275. // the context is nil a panic will occur. In the future the SDK may create
  276. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  277. // for more information on using Contexts.
  278. func (c *InputService1ProtocolTest) InputService1TestCaseOperation3WithContext(ctx aws.Context, input *InputService1TestShapeInputService1TestCaseOperation3Input, opts ...request.Option) (*InputService1TestShapeInputService1TestCaseOperation3Output, error) {
  279. req, out := c.InputService1TestCaseOperation3Request(input)
  280. req.SetContext(ctx)
  281. req.ApplyOptions(opts...)
  282. return out, req.Send()
  283. }
  284. type InputService1TestShapeInputService1TestCaseOperation1Input struct {
  285. _ struct{} `type:"structure"`
  286. Bar *string `type:"string"`
  287. Baz *bool `type:"boolean"`
  288. Foo *string `type:"string"`
  289. }
  290. // SetBar sets the Bar field's value.
  291. func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetBar(v string) *InputService1TestShapeInputService1TestCaseOperation1Input {
  292. s.Bar = &v
  293. return s
  294. }
  295. // SetBaz sets the Baz field's value.
  296. func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetBaz(v bool) *InputService1TestShapeInputService1TestCaseOperation1Input {
  297. s.Baz = &v
  298. return s
  299. }
  300. // SetFoo sets the Foo field's value.
  301. func (s *InputService1TestShapeInputService1TestCaseOperation1Input) SetFoo(v string) *InputService1TestShapeInputService1TestCaseOperation1Input {
  302. s.Foo = &v
  303. return s
  304. }
  305. type InputService1TestShapeInputService1TestCaseOperation1Output struct {
  306. _ struct{} `type:"structure"`
  307. }
  308. type InputService1TestShapeInputService1TestCaseOperation2Input struct {
  309. _ struct{} `type:"structure"`
  310. Bar *string `type:"string"`
  311. Baz *bool `type:"boolean"`
  312. Foo *string `type:"string"`
  313. }
  314. // SetBar sets the Bar field's value.
  315. func (s *InputService1TestShapeInputService1TestCaseOperation2Input) SetBar(v string) *InputService1TestShapeInputService1TestCaseOperation2Input {
  316. s.Bar = &v
  317. return s
  318. }
  319. // SetBaz sets the Baz field's value.
  320. func (s *InputService1TestShapeInputService1TestCaseOperation2Input) SetBaz(v bool) *InputService1TestShapeInputService1TestCaseOperation2Input {
  321. s.Baz = &v
  322. return s
  323. }
  324. // SetFoo sets the Foo field's value.
  325. func (s *InputService1TestShapeInputService1TestCaseOperation2Input) SetFoo(v string) *InputService1TestShapeInputService1TestCaseOperation2Input {
  326. s.Foo = &v
  327. return s
  328. }
  329. type InputService1TestShapeInputService1TestCaseOperation2Output struct {
  330. _ struct{} `type:"structure"`
  331. }
  332. type InputService1TestShapeInputService1TestCaseOperation3Input struct {
  333. _ struct{} `type:"structure"`
  334. Bar *string `type:"string"`
  335. Baz *bool `type:"boolean"`
  336. Foo *string `type:"string"`
  337. }
  338. // SetBar sets the Bar field's value.
  339. func (s *InputService1TestShapeInputService1TestCaseOperation3Input) SetBar(v string) *InputService1TestShapeInputService1TestCaseOperation3Input {
  340. s.Bar = &v
  341. return s
  342. }
  343. // SetBaz sets the Baz field's value.
  344. func (s *InputService1TestShapeInputService1TestCaseOperation3Input) SetBaz(v bool) *InputService1TestShapeInputService1TestCaseOperation3Input {
  345. s.Baz = &v
  346. return s
  347. }
  348. // SetFoo sets the Foo field's value.
  349. func (s *InputService1TestShapeInputService1TestCaseOperation3Input) SetFoo(v string) *InputService1TestShapeInputService1TestCaseOperation3Input {
  350. s.Foo = &v
  351. return s
  352. }
  353. type InputService1TestShapeInputService1TestCaseOperation3Output struct {
  354. _ struct{} `type:"structure"`
  355. }
  356. // InputService2ProtocolTest provides the API operation methods for making requests to
  357. // . See this package's package overview docs
  358. // for details on the service.
  359. //
  360. // InputService2ProtocolTest methods are safe to use concurrently. It is not safe to
  361. // modify mutate any of the struct's properties though.
  362. type InputService2ProtocolTest struct {
  363. *client.Client
  364. }
  365. // New creates a new instance of the InputService2ProtocolTest client with a session.
  366. // If additional configuration is needed for the client instance use the optional
  367. // aws.Config parameter to add your extra config.
  368. //
  369. // Example:
  370. // // Create a InputService2ProtocolTest client from just a session.
  371. // svc := inputservice2protocoltest.New(mySession)
  372. //
  373. // // Create a InputService2ProtocolTest client with additional configuration
  374. // svc := inputservice2protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  375. func NewInputService2ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService2ProtocolTest {
  376. c := p.ClientConfig("inputservice2protocoltest", cfgs...)
  377. return newInputService2ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  378. }
  379. // newClient creates, initializes and returns a new service client instance.
  380. func newInputService2ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService2ProtocolTest {
  381. svc := &InputService2ProtocolTest{
  382. Client: client.New(
  383. cfg,
  384. metadata.ClientInfo{
  385. ServiceName: "InputService2ProtocolTest",
  386. ServiceID: "InputService2ProtocolTest",
  387. SigningName: signingName,
  388. SigningRegion: signingRegion,
  389. Endpoint: endpoint,
  390. APIVersion: "2014-01-01",
  391. },
  392. handlers,
  393. ),
  394. }
  395. // Handlers
  396. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  397. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  398. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  399. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  400. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  401. return svc
  402. }
  403. // newRequest creates a new request for a InputService2ProtocolTest operation and runs any
  404. // custom request initialization.
  405. func (c *InputService2ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  406. req := c.NewRequest(op, params, data)
  407. return req
  408. }
  409. const opInputService2TestCaseOperation1 = "OperationName"
  410. // InputService2TestCaseOperation1Request generates a "aws/request.Request" representing the
  411. // client's request for the InputService2TestCaseOperation1 operation. The "output" return
  412. // value will be populated with the request's response once the request completes
  413. // successfully.
  414. //
  415. // Use "Send" method on the returned Request to send the API call to the service.
  416. // the "output" return value is not valid until after Send returns without error.
  417. //
  418. // See InputService2TestCaseOperation1 for more information on using the InputService2TestCaseOperation1
  419. // API call, and error handling.
  420. //
  421. // This method is useful when you want to inject custom logic or configuration
  422. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  423. //
  424. //
  425. // // Example sending a request using the InputService2TestCaseOperation1Request method.
  426. // req, resp := client.InputService2TestCaseOperation1Request(params)
  427. //
  428. // err := req.Send()
  429. // if err == nil { // resp is now filled
  430. // fmt.Println(resp)
  431. // }
  432. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1Request(input *InputService2TestShapeInputService2TestCaseOperation1Input) (req *request.Request, output *InputService2TestShapeInputService2TestCaseOperation1Output) {
  433. op := &request.Operation{
  434. Name: opInputService2TestCaseOperation1,
  435. HTTPPath: "/",
  436. }
  437. if input == nil {
  438. input = &InputService2TestShapeInputService2TestCaseOperation1Input{}
  439. }
  440. output = &InputService2TestShapeInputService2TestCaseOperation1Output{}
  441. req = c.newRequest(op, input, output)
  442. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  443. return
  444. }
  445. // InputService2TestCaseOperation1 API operation for .
  446. //
  447. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  448. // with awserr.Error's Code and Message methods to get detailed information about
  449. // the error.
  450. //
  451. // See the AWS API reference guide for 's
  452. // API operation InputService2TestCaseOperation1 for usage and error information.
  453. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1(input *InputService2TestShapeInputService2TestCaseOperation1Input) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
  454. req, out := c.InputService2TestCaseOperation1Request(input)
  455. return out, req.Send()
  456. }
  457. // InputService2TestCaseOperation1WithContext is the same as InputService2TestCaseOperation1 with the addition of
  458. // the ability to pass a context and additional request options.
  459. //
  460. // See InputService2TestCaseOperation1 for details on how to use this API operation.
  461. //
  462. // The context must be non-nil and will be used for request cancellation. If
  463. // the context is nil a panic will occur. In the future the SDK may create
  464. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  465. // for more information on using Contexts.
  466. func (c *InputService2ProtocolTest) InputService2TestCaseOperation1WithContext(ctx aws.Context, input *InputService2TestShapeInputService2TestCaseOperation1Input, opts ...request.Option) (*InputService2TestShapeInputService2TestCaseOperation1Output, error) {
  467. req, out := c.InputService2TestCaseOperation1Request(input)
  468. req.SetContext(ctx)
  469. req.ApplyOptions(opts...)
  470. return out, req.Send()
  471. }
  472. type InputService2TestShapeInputService2TestCaseOperation1Input struct {
  473. _ struct{} `type:"structure"`
  474. StructArg *InputService2TestShapeStructType `type:"structure"`
  475. }
  476. // SetStructArg sets the StructArg field's value.
  477. func (s *InputService2TestShapeInputService2TestCaseOperation1Input) SetStructArg(v *InputService2TestShapeStructType) *InputService2TestShapeInputService2TestCaseOperation1Input {
  478. s.StructArg = v
  479. return s
  480. }
  481. type InputService2TestShapeInputService2TestCaseOperation1Output struct {
  482. _ struct{} `type:"structure"`
  483. }
  484. type InputService2TestShapeStructType struct {
  485. _ struct{} `type:"structure"`
  486. ScalarArg *string `type:"string"`
  487. }
  488. // SetScalarArg sets the ScalarArg field's value.
  489. func (s *InputService2TestShapeStructType) SetScalarArg(v string) *InputService2TestShapeStructType {
  490. s.ScalarArg = &v
  491. return s
  492. }
  493. // InputService3ProtocolTest provides the API operation methods for making requests to
  494. // . See this package's package overview docs
  495. // for details on the service.
  496. //
  497. // InputService3ProtocolTest methods are safe to use concurrently. It is not safe to
  498. // modify mutate any of the struct's properties though.
  499. type InputService3ProtocolTest struct {
  500. *client.Client
  501. }
  502. // New creates a new instance of the InputService3ProtocolTest client with a session.
  503. // If additional configuration is needed for the client instance use the optional
  504. // aws.Config parameter to add your extra config.
  505. //
  506. // Example:
  507. // // Create a InputService3ProtocolTest client from just a session.
  508. // svc := inputservice3protocoltest.New(mySession)
  509. //
  510. // // Create a InputService3ProtocolTest client with additional configuration
  511. // svc := inputservice3protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  512. func NewInputService3ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService3ProtocolTest {
  513. c := p.ClientConfig("inputservice3protocoltest", cfgs...)
  514. return newInputService3ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  515. }
  516. // newClient creates, initializes and returns a new service client instance.
  517. func newInputService3ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService3ProtocolTest {
  518. svc := &InputService3ProtocolTest{
  519. Client: client.New(
  520. cfg,
  521. metadata.ClientInfo{
  522. ServiceName: "InputService3ProtocolTest",
  523. ServiceID: "InputService3ProtocolTest",
  524. SigningName: signingName,
  525. SigningRegion: signingRegion,
  526. Endpoint: endpoint,
  527. APIVersion: "2014-01-01",
  528. },
  529. handlers,
  530. ),
  531. }
  532. // Handlers
  533. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  534. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  535. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  536. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  537. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  538. return svc
  539. }
  540. // newRequest creates a new request for a InputService3ProtocolTest operation and runs any
  541. // custom request initialization.
  542. func (c *InputService3ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  543. req := c.NewRequest(op, params, data)
  544. return req
  545. }
  546. const opInputService3TestCaseOperation1 = "OperationName"
  547. // InputService3TestCaseOperation1Request generates a "aws/request.Request" representing the
  548. // client's request for the InputService3TestCaseOperation1 operation. The "output" return
  549. // value will be populated with the request's response once the request completes
  550. // successfully.
  551. //
  552. // Use "Send" method on the returned Request to send the API call to the service.
  553. // the "output" return value is not valid until after Send returns without error.
  554. //
  555. // See InputService3TestCaseOperation1 for more information on using the InputService3TestCaseOperation1
  556. // API call, and error handling.
  557. //
  558. // This method is useful when you want to inject custom logic or configuration
  559. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  560. //
  561. //
  562. // // Example sending a request using the InputService3TestCaseOperation1Request method.
  563. // req, resp := client.InputService3TestCaseOperation1Request(params)
  564. //
  565. // err := req.Send()
  566. // if err == nil { // resp is now filled
  567. // fmt.Println(resp)
  568. // }
  569. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1Request(input *InputService3TestShapeInputService3TestCaseOperation1Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation1Output) {
  570. op := &request.Operation{
  571. Name: opInputService3TestCaseOperation1,
  572. HTTPPath: "/",
  573. }
  574. if input == nil {
  575. input = &InputService3TestShapeInputService3TestCaseOperation1Input{}
  576. }
  577. output = &InputService3TestShapeInputService3TestCaseOperation1Output{}
  578. req = c.newRequest(op, input, output)
  579. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  580. return
  581. }
  582. // InputService3TestCaseOperation1 API operation for .
  583. //
  584. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  585. // with awserr.Error's Code and Message methods to get detailed information about
  586. // the error.
  587. //
  588. // See the AWS API reference guide for 's
  589. // API operation InputService3TestCaseOperation1 for usage and error information.
  590. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1(input *InputService3TestShapeInputService3TestCaseOperation1Input) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
  591. req, out := c.InputService3TestCaseOperation1Request(input)
  592. return out, req.Send()
  593. }
  594. // InputService3TestCaseOperation1WithContext is the same as InputService3TestCaseOperation1 with the addition of
  595. // the ability to pass a context and additional request options.
  596. //
  597. // See InputService3TestCaseOperation1 for details on how to use this API operation.
  598. //
  599. // The context must be non-nil and will be used for request cancellation. If
  600. // the context is nil a panic will occur. In the future the SDK may create
  601. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  602. // for more information on using Contexts.
  603. func (c *InputService3ProtocolTest) InputService3TestCaseOperation1WithContext(ctx aws.Context, input *InputService3TestShapeInputService3TestCaseOperation1Input, opts ...request.Option) (*InputService3TestShapeInputService3TestCaseOperation1Output, error) {
  604. req, out := c.InputService3TestCaseOperation1Request(input)
  605. req.SetContext(ctx)
  606. req.ApplyOptions(opts...)
  607. return out, req.Send()
  608. }
  609. const opInputService3TestCaseOperation2 = "OperationName"
  610. // InputService3TestCaseOperation2Request generates a "aws/request.Request" representing the
  611. // client's request for the InputService3TestCaseOperation2 operation. The "output" return
  612. // value will be populated with the request's response once the request completes
  613. // successfully.
  614. //
  615. // Use "Send" method on the returned Request to send the API call to the service.
  616. // the "output" return value is not valid until after Send returns without error.
  617. //
  618. // See InputService3TestCaseOperation2 for more information on using the InputService3TestCaseOperation2
  619. // API call, and error handling.
  620. //
  621. // This method is useful when you want to inject custom logic or configuration
  622. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  623. //
  624. //
  625. // // Example sending a request using the InputService3TestCaseOperation2Request method.
  626. // req, resp := client.InputService3TestCaseOperation2Request(params)
  627. //
  628. // err := req.Send()
  629. // if err == nil { // resp is now filled
  630. // fmt.Println(resp)
  631. // }
  632. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2Request(input *InputService3TestShapeInputService3TestCaseOperation2Input) (req *request.Request, output *InputService3TestShapeInputService3TestCaseOperation2Output) {
  633. op := &request.Operation{
  634. Name: opInputService3TestCaseOperation2,
  635. HTTPPath: "/",
  636. }
  637. if input == nil {
  638. input = &InputService3TestShapeInputService3TestCaseOperation2Input{}
  639. }
  640. output = &InputService3TestShapeInputService3TestCaseOperation2Output{}
  641. req = c.newRequest(op, input, output)
  642. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  643. return
  644. }
  645. // InputService3TestCaseOperation2 API operation for .
  646. //
  647. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  648. // with awserr.Error's Code and Message methods to get detailed information about
  649. // the error.
  650. //
  651. // See the AWS API reference guide for 's
  652. // API operation InputService3TestCaseOperation2 for usage and error information.
  653. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2(input *InputService3TestShapeInputService3TestCaseOperation2Input) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) {
  654. req, out := c.InputService3TestCaseOperation2Request(input)
  655. return out, req.Send()
  656. }
  657. // InputService3TestCaseOperation2WithContext is the same as InputService3TestCaseOperation2 with the addition of
  658. // the ability to pass a context and additional request options.
  659. //
  660. // See InputService3TestCaseOperation2 for details on how to use this API operation.
  661. //
  662. // The context must be non-nil and will be used for request cancellation. If
  663. // the context is nil a panic will occur. In the future the SDK may create
  664. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  665. // for more information on using Contexts.
  666. func (c *InputService3ProtocolTest) InputService3TestCaseOperation2WithContext(ctx aws.Context, input *InputService3TestShapeInputService3TestCaseOperation2Input, opts ...request.Option) (*InputService3TestShapeInputService3TestCaseOperation2Output, error) {
  667. req, out := c.InputService3TestCaseOperation2Request(input)
  668. req.SetContext(ctx)
  669. req.ApplyOptions(opts...)
  670. return out, req.Send()
  671. }
  672. type InputService3TestShapeInputService3TestCaseOperation1Input struct {
  673. _ struct{} `type:"structure"`
  674. ListArg []*string `type:"list"`
  675. }
  676. // SetListArg sets the ListArg field's value.
  677. func (s *InputService3TestShapeInputService3TestCaseOperation1Input) SetListArg(v []*string) *InputService3TestShapeInputService3TestCaseOperation1Input {
  678. s.ListArg = v
  679. return s
  680. }
  681. type InputService3TestShapeInputService3TestCaseOperation1Output struct {
  682. _ struct{} `type:"structure"`
  683. }
  684. type InputService3TestShapeInputService3TestCaseOperation2Input struct {
  685. _ struct{} `type:"structure"`
  686. ListArg []*string `type:"list"`
  687. }
  688. // SetListArg sets the ListArg field's value.
  689. func (s *InputService3TestShapeInputService3TestCaseOperation2Input) SetListArg(v []*string) *InputService3TestShapeInputService3TestCaseOperation2Input {
  690. s.ListArg = v
  691. return s
  692. }
  693. type InputService3TestShapeInputService3TestCaseOperation2Output struct {
  694. _ struct{} `type:"structure"`
  695. }
  696. // InputService4ProtocolTest provides the API operation methods for making requests to
  697. // . See this package's package overview docs
  698. // for details on the service.
  699. //
  700. // InputService4ProtocolTest methods are safe to use concurrently. It is not safe to
  701. // modify mutate any of the struct's properties though.
  702. type InputService4ProtocolTest struct {
  703. *client.Client
  704. }
  705. // New creates a new instance of the InputService4ProtocolTest client with a session.
  706. // If additional configuration is needed for the client instance use the optional
  707. // aws.Config parameter to add your extra config.
  708. //
  709. // Example:
  710. // // Create a InputService4ProtocolTest client from just a session.
  711. // svc := inputservice4protocoltest.New(mySession)
  712. //
  713. // // Create a InputService4ProtocolTest client with additional configuration
  714. // svc := inputservice4protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  715. func NewInputService4ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService4ProtocolTest {
  716. c := p.ClientConfig("inputservice4protocoltest", cfgs...)
  717. return newInputService4ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  718. }
  719. // newClient creates, initializes and returns a new service client instance.
  720. func newInputService4ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService4ProtocolTest {
  721. svc := &InputService4ProtocolTest{
  722. Client: client.New(
  723. cfg,
  724. metadata.ClientInfo{
  725. ServiceName: "InputService4ProtocolTest",
  726. ServiceID: "InputService4ProtocolTest",
  727. SigningName: signingName,
  728. SigningRegion: signingRegion,
  729. Endpoint: endpoint,
  730. APIVersion: "2014-01-01",
  731. },
  732. handlers,
  733. ),
  734. }
  735. // Handlers
  736. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  737. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  738. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  739. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  740. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  741. return svc
  742. }
  743. // newRequest creates a new request for a InputService4ProtocolTest operation and runs any
  744. // custom request initialization.
  745. func (c *InputService4ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  746. req := c.NewRequest(op, params, data)
  747. return req
  748. }
  749. const opInputService4TestCaseOperation1 = "OperationName"
  750. // InputService4TestCaseOperation1Request generates a "aws/request.Request" representing the
  751. // client's request for the InputService4TestCaseOperation1 operation. The "output" return
  752. // value will be populated with the request's response once the request completes
  753. // successfully.
  754. //
  755. // Use "Send" method on the returned Request to send the API call to the service.
  756. // the "output" return value is not valid until after Send returns without error.
  757. //
  758. // See InputService4TestCaseOperation1 for more information on using the InputService4TestCaseOperation1
  759. // API call, and error handling.
  760. //
  761. // This method is useful when you want to inject custom logic or configuration
  762. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  763. //
  764. //
  765. // // Example sending a request using the InputService4TestCaseOperation1Request method.
  766. // req, resp := client.InputService4TestCaseOperation1Request(params)
  767. //
  768. // err := req.Send()
  769. // if err == nil { // resp is now filled
  770. // fmt.Println(resp)
  771. // }
  772. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1Request(input *InputService4TestShapeInputService4TestCaseOperation1Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation1Output) {
  773. op := &request.Operation{
  774. Name: opInputService4TestCaseOperation1,
  775. HTTPPath: "/",
  776. }
  777. if input == nil {
  778. input = &InputService4TestShapeInputService4TestCaseOperation1Input{}
  779. }
  780. output = &InputService4TestShapeInputService4TestCaseOperation1Output{}
  781. req = c.newRequest(op, input, output)
  782. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  783. return
  784. }
  785. // InputService4TestCaseOperation1 API operation for .
  786. //
  787. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  788. // with awserr.Error's Code and Message methods to get detailed information about
  789. // the error.
  790. //
  791. // See the AWS API reference guide for 's
  792. // API operation InputService4TestCaseOperation1 for usage and error information.
  793. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1(input *InputService4TestShapeInputService4TestCaseOperation1Input) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
  794. req, out := c.InputService4TestCaseOperation1Request(input)
  795. return out, req.Send()
  796. }
  797. // InputService4TestCaseOperation1WithContext is the same as InputService4TestCaseOperation1 with the addition of
  798. // the ability to pass a context and additional request options.
  799. //
  800. // See InputService4TestCaseOperation1 for details on how to use this API operation.
  801. //
  802. // The context must be non-nil and will be used for request cancellation. If
  803. // the context is nil a panic will occur. In the future the SDK may create
  804. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  805. // for more information on using Contexts.
  806. func (c *InputService4ProtocolTest) InputService4TestCaseOperation1WithContext(ctx aws.Context, input *InputService4TestShapeInputService4TestCaseOperation1Input, opts ...request.Option) (*InputService4TestShapeInputService4TestCaseOperation1Output, error) {
  807. req, out := c.InputService4TestCaseOperation1Request(input)
  808. req.SetContext(ctx)
  809. req.ApplyOptions(opts...)
  810. return out, req.Send()
  811. }
  812. const opInputService4TestCaseOperation2 = "OperationName"
  813. // InputService4TestCaseOperation2Request generates a "aws/request.Request" representing the
  814. // client's request for the InputService4TestCaseOperation2 operation. The "output" return
  815. // value will be populated with the request's response once the request completes
  816. // successfully.
  817. //
  818. // Use "Send" method on the returned Request to send the API call to the service.
  819. // the "output" return value is not valid until after Send returns without error.
  820. //
  821. // See InputService4TestCaseOperation2 for more information on using the InputService4TestCaseOperation2
  822. // API call, and error handling.
  823. //
  824. // This method is useful when you want to inject custom logic or configuration
  825. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  826. //
  827. //
  828. // // Example sending a request using the InputService4TestCaseOperation2Request method.
  829. // req, resp := client.InputService4TestCaseOperation2Request(params)
  830. //
  831. // err := req.Send()
  832. // if err == nil { // resp is now filled
  833. // fmt.Println(resp)
  834. // }
  835. func (c *InputService4ProtocolTest) InputService4TestCaseOperation2Request(input *InputService4TestShapeInputService4TestCaseOperation2Input) (req *request.Request, output *InputService4TestShapeInputService4TestCaseOperation2Output) {
  836. op := &request.Operation{
  837. Name: opInputService4TestCaseOperation2,
  838. HTTPPath: "/",
  839. }
  840. if input == nil {
  841. input = &InputService4TestShapeInputService4TestCaseOperation2Input{}
  842. }
  843. output = &InputService4TestShapeInputService4TestCaseOperation2Output{}
  844. req = c.newRequest(op, input, output)
  845. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  846. return
  847. }
  848. // InputService4TestCaseOperation2 API operation for .
  849. //
  850. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  851. // with awserr.Error's Code and Message methods to get detailed information about
  852. // the error.
  853. //
  854. // See the AWS API reference guide for 's
  855. // API operation InputService4TestCaseOperation2 for usage and error information.
  856. func (c *InputService4ProtocolTest) InputService4TestCaseOperation2(input *InputService4TestShapeInputService4TestCaseOperation2Input) (*InputService4TestShapeInputService4TestCaseOperation2Output, error) {
  857. req, out := c.InputService4TestCaseOperation2Request(input)
  858. return out, req.Send()
  859. }
  860. // InputService4TestCaseOperation2WithContext is the same as InputService4TestCaseOperation2 with the addition of
  861. // the ability to pass a context and additional request options.
  862. //
  863. // See InputService4TestCaseOperation2 for details on how to use this API operation.
  864. //
  865. // The context must be non-nil and will be used for request cancellation. If
  866. // the context is nil a panic will occur. In the future the SDK may create
  867. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  868. // for more information on using Contexts.
  869. func (c *InputService4ProtocolTest) InputService4TestCaseOperation2WithContext(ctx aws.Context, input *InputService4TestShapeInputService4TestCaseOperation2Input, opts ...request.Option) (*InputService4TestShapeInputService4TestCaseOperation2Output, error) {
  870. req, out := c.InputService4TestCaseOperation2Request(input)
  871. req.SetContext(ctx)
  872. req.ApplyOptions(opts...)
  873. return out, req.Send()
  874. }
  875. type InputService4TestShapeInputService4TestCaseOperation1Input struct {
  876. _ struct{} `type:"structure"`
  877. ListArg []*string `type:"list" flattened:"true"`
  878. NamedListArg []*string `locationNameList:"Foo" type:"list" flattened:"true"`
  879. ScalarArg *string `type:"string"`
  880. }
  881. // SetListArg sets the ListArg field's value.
  882. func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetListArg(v []*string) *InputService4TestShapeInputService4TestCaseOperation1Input {
  883. s.ListArg = v
  884. return s
  885. }
  886. // SetNamedListArg sets the NamedListArg field's value.
  887. func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetNamedListArg(v []*string) *InputService4TestShapeInputService4TestCaseOperation1Input {
  888. s.NamedListArg = v
  889. return s
  890. }
  891. // SetScalarArg sets the ScalarArg field's value.
  892. func (s *InputService4TestShapeInputService4TestCaseOperation1Input) SetScalarArg(v string) *InputService4TestShapeInputService4TestCaseOperation1Input {
  893. s.ScalarArg = &v
  894. return s
  895. }
  896. type InputService4TestShapeInputService4TestCaseOperation1Output struct {
  897. _ struct{} `type:"structure"`
  898. }
  899. type InputService4TestShapeInputService4TestCaseOperation2Input struct {
  900. _ struct{} `type:"structure"`
  901. ListArg []*string `type:"list" flattened:"true"`
  902. NamedListArg []*string `locationNameList:"Foo" type:"list" flattened:"true"`
  903. ScalarArg *string `type:"string"`
  904. }
  905. // SetListArg sets the ListArg field's value.
  906. func (s *InputService4TestShapeInputService4TestCaseOperation2Input) SetListArg(v []*string) *InputService4TestShapeInputService4TestCaseOperation2Input {
  907. s.ListArg = v
  908. return s
  909. }
  910. // SetNamedListArg sets the NamedListArg field's value.
  911. func (s *InputService4TestShapeInputService4TestCaseOperation2Input) SetNamedListArg(v []*string) *InputService4TestShapeInputService4TestCaseOperation2Input {
  912. s.NamedListArg = v
  913. return s
  914. }
  915. // SetScalarArg sets the ScalarArg field's value.
  916. func (s *InputService4TestShapeInputService4TestCaseOperation2Input) SetScalarArg(v string) *InputService4TestShapeInputService4TestCaseOperation2Input {
  917. s.ScalarArg = &v
  918. return s
  919. }
  920. type InputService4TestShapeInputService4TestCaseOperation2Output struct {
  921. _ struct{} `type:"structure"`
  922. }
  923. // InputService5ProtocolTest provides the API operation methods for making requests to
  924. // . See this package's package overview docs
  925. // for details on the service.
  926. //
  927. // InputService5ProtocolTest methods are safe to use concurrently. It is not safe to
  928. // modify mutate any of the struct's properties though.
  929. type InputService5ProtocolTest struct {
  930. *client.Client
  931. }
  932. // New creates a new instance of the InputService5ProtocolTest client with a session.
  933. // If additional configuration is needed for the client instance use the optional
  934. // aws.Config parameter to add your extra config.
  935. //
  936. // Example:
  937. // // Create a InputService5ProtocolTest client from just a session.
  938. // svc := inputservice5protocoltest.New(mySession)
  939. //
  940. // // Create a InputService5ProtocolTest client with additional configuration
  941. // svc := inputservice5protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  942. func NewInputService5ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService5ProtocolTest {
  943. c := p.ClientConfig("inputservice5protocoltest", cfgs...)
  944. return newInputService5ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  945. }
  946. // newClient creates, initializes and returns a new service client instance.
  947. func newInputService5ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService5ProtocolTest {
  948. svc := &InputService5ProtocolTest{
  949. Client: client.New(
  950. cfg,
  951. metadata.ClientInfo{
  952. ServiceName: "InputService5ProtocolTest",
  953. ServiceID: "InputService5ProtocolTest",
  954. SigningName: signingName,
  955. SigningRegion: signingRegion,
  956. Endpoint: endpoint,
  957. APIVersion: "2014-01-01",
  958. },
  959. handlers,
  960. ),
  961. }
  962. // Handlers
  963. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  964. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  965. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  966. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  967. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  968. return svc
  969. }
  970. // newRequest creates a new request for a InputService5ProtocolTest operation and runs any
  971. // custom request initialization.
  972. func (c *InputService5ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  973. req := c.NewRequest(op, params, data)
  974. return req
  975. }
  976. const opInputService5TestCaseOperation1 = "OperationName"
  977. // InputService5TestCaseOperation1Request generates a "aws/request.Request" representing the
  978. // client's request for the InputService5TestCaseOperation1 operation. The "output" return
  979. // value will be populated with the request's response once the request completes
  980. // successfully.
  981. //
  982. // Use "Send" method on the returned Request to send the API call to the service.
  983. // the "output" return value is not valid until after Send returns without error.
  984. //
  985. // See InputService5TestCaseOperation1 for more information on using the InputService5TestCaseOperation1
  986. // API call, and error handling.
  987. //
  988. // This method is useful when you want to inject custom logic or configuration
  989. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  990. //
  991. //
  992. // // Example sending a request using the InputService5TestCaseOperation1Request method.
  993. // req, resp := client.InputService5TestCaseOperation1Request(params)
  994. //
  995. // err := req.Send()
  996. // if err == nil { // resp is now filled
  997. // fmt.Println(resp)
  998. // }
  999. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1Request(input *InputService5TestShapeInputService5TestCaseOperation1Input) (req *request.Request, output *InputService5TestShapeInputService5TestCaseOperation1Output) {
  1000. op := &request.Operation{
  1001. Name: opInputService5TestCaseOperation1,
  1002. HTTPPath: "/",
  1003. }
  1004. if input == nil {
  1005. input = &InputService5TestShapeInputService5TestCaseOperation1Input{}
  1006. }
  1007. output = &InputService5TestShapeInputService5TestCaseOperation1Output{}
  1008. req = c.newRequest(op, input, output)
  1009. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1010. return
  1011. }
  1012. // InputService5TestCaseOperation1 API operation for .
  1013. //
  1014. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1015. // with awserr.Error's Code and Message methods to get detailed information about
  1016. // the error.
  1017. //
  1018. // See the AWS API reference guide for 's
  1019. // API operation InputService5TestCaseOperation1 for usage and error information.
  1020. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1(input *InputService5TestShapeInputService5TestCaseOperation1Input) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
  1021. req, out := c.InputService5TestCaseOperation1Request(input)
  1022. return out, req.Send()
  1023. }
  1024. // InputService5TestCaseOperation1WithContext is the same as InputService5TestCaseOperation1 with the addition of
  1025. // the ability to pass a context and additional request options.
  1026. //
  1027. // See InputService5TestCaseOperation1 for details on how to use this API operation.
  1028. //
  1029. // The context must be non-nil and will be used for request cancellation. If
  1030. // the context is nil a panic will occur. In the future the SDK may create
  1031. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1032. // for more information on using Contexts.
  1033. func (c *InputService5ProtocolTest) InputService5TestCaseOperation1WithContext(ctx aws.Context, input *InputService5TestShapeInputService5TestCaseOperation1Input, opts ...request.Option) (*InputService5TestShapeInputService5TestCaseOperation1Output, error) {
  1034. req, out := c.InputService5TestCaseOperation1Request(input)
  1035. req.SetContext(ctx)
  1036. req.ApplyOptions(opts...)
  1037. return out, req.Send()
  1038. }
  1039. type InputService5TestShapeInputService5TestCaseOperation1Input struct {
  1040. _ struct{} `type:"structure"`
  1041. MapArg map[string]*string `type:"map" flattened:"true"`
  1042. }
  1043. // SetMapArg sets the MapArg field's value.
  1044. func (s *InputService5TestShapeInputService5TestCaseOperation1Input) SetMapArg(v map[string]*string) *InputService5TestShapeInputService5TestCaseOperation1Input {
  1045. s.MapArg = v
  1046. return s
  1047. }
  1048. type InputService5TestShapeInputService5TestCaseOperation1Output struct {
  1049. _ struct{} `type:"structure"`
  1050. }
  1051. // InputService6ProtocolTest provides the API operation methods for making requests to
  1052. // . See this package's package overview docs
  1053. // for details on the service.
  1054. //
  1055. // InputService6ProtocolTest methods are safe to use concurrently. It is not safe to
  1056. // modify mutate any of the struct's properties though.
  1057. type InputService6ProtocolTest struct {
  1058. *client.Client
  1059. }
  1060. // New creates a new instance of the InputService6ProtocolTest client with a session.
  1061. // If additional configuration is needed for the client instance use the optional
  1062. // aws.Config parameter to add your extra config.
  1063. //
  1064. // Example:
  1065. // // Create a InputService6ProtocolTest client from just a session.
  1066. // svc := inputservice6protocoltest.New(mySession)
  1067. //
  1068. // // Create a InputService6ProtocolTest client with additional configuration
  1069. // svc := inputservice6protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1070. func NewInputService6ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService6ProtocolTest {
  1071. c := p.ClientConfig("inputservice6protocoltest", cfgs...)
  1072. return newInputService6ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  1073. }
  1074. // newClient creates, initializes and returns a new service client instance.
  1075. func newInputService6ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService6ProtocolTest {
  1076. svc := &InputService6ProtocolTest{
  1077. Client: client.New(
  1078. cfg,
  1079. metadata.ClientInfo{
  1080. ServiceName: "InputService6ProtocolTest",
  1081. ServiceID: "InputService6ProtocolTest",
  1082. SigningName: signingName,
  1083. SigningRegion: signingRegion,
  1084. Endpoint: endpoint,
  1085. APIVersion: "2014-01-01",
  1086. },
  1087. handlers,
  1088. ),
  1089. }
  1090. // Handlers
  1091. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1092. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1093. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1094. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1095. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1096. return svc
  1097. }
  1098. // newRequest creates a new request for a InputService6ProtocolTest operation and runs any
  1099. // custom request initialization.
  1100. func (c *InputService6ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1101. req := c.NewRequest(op, params, data)
  1102. return req
  1103. }
  1104. const opInputService6TestCaseOperation1 = "OperationName"
  1105. // InputService6TestCaseOperation1Request generates a "aws/request.Request" representing the
  1106. // client's request for the InputService6TestCaseOperation1 operation. The "output" return
  1107. // value will be populated with the request's response once the request completes
  1108. // successfully.
  1109. //
  1110. // Use "Send" method on the returned Request to send the API call to the service.
  1111. // the "output" return value is not valid until after Send returns without error.
  1112. //
  1113. // See InputService6TestCaseOperation1 for more information on using the InputService6TestCaseOperation1
  1114. // API call, and error handling.
  1115. //
  1116. // This method is useful when you want to inject custom logic or configuration
  1117. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1118. //
  1119. //
  1120. // // Example sending a request using the InputService6TestCaseOperation1Request method.
  1121. // req, resp := client.InputService6TestCaseOperation1Request(params)
  1122. //
  1123. // err := req.Send()
  1124. // if err == nil { // resp is now filled
  1125. // fmt.Println(resp)
  1126. // }
  1127. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1Request(input *InputService6TestShapeInputService6TestCaseOperation1Input) (req *request.Request, output *InputService6TestShapeInputService6TestCaseOperation1Output) {
  1128. op := &request.Operation{
  1129. Name: opInputService6TestCaseOperation1,
  1130. HTTPPath: "/",
  1131. }
  1132. if input == nil {
  1133. input = &InputService6TestShapeInputService6TestCaseOperation1Input{}
  1134. }
  1135. output = &InputService6TestShapeInputService6TestCaseOperation1Output{}
  1136. req = c.newRequest(op, input, output)
  1137. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1138. return
  1139. }
  1140. // InputService6TestCaseOperation1 API operation for .
  1141. //
  1142. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1143. // with awserr.Error's Code and Message methods to get detailed information about
  1144. // the error.
  1145. //
  1146. // See the AWS API reference guide for 's
  1147. // API operation InputService6TestCaseOperation1 for usage and error information.
  1148. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1(input *InputService6TestShapeInputService6TestCaseOperation1Input) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
  1149. req, out := c.InputService6TestCaseOperation1Request(input)
  1150. return out, req.Send()
  1151. }
  1152. // InputService6TestCaseOperation1WithContext is the same as InputService6TestCaseOperation1 with the addition of
  1153. // the ability to pass a context and additional request options.
  1154. //
  1155. // See InputService6TestCaseOperation1 for details on how to use this API operation.
  1156. //
  1157. // The context must be non-nil and will be used for request cancellation. If
  1158. // the context is nil a panic will occur. In the future the SDK may create
  1159. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1160. // for more information on using Contexts.
  1161. func (c *InputService6ProtocolTest) InputService6TestCaseOperation1WithContext(ctx aws.Context, input *InputService6TestShapeInputService6TestCaseOperation1Input, opts ...request.Option) (*InputService6TestShapeInputService6TestCaseOperation1Output, error) {
  1162. req, out := c.InputService6TestCaseOperation1Request(input)
  1163. req.SetContext(ctx)
  1164. req.ApplyOptions(opts...)
  1165. return out, req.Send()
  1166. }
  1167. type InputService6TestShapeInputService6TestCaseOperation1Input struct {
  1168. _ struct{} `type:"structure"`
  1169. ListArg []*string `locationNameList:"item" type:"list"`
  1170. }
  1171. // SetListArg sets the ListArg field's value.
  1172. func (s *InputService6TestShapeInputService6TestCaseOperation1Input) SetListArg(v []*string) *InputService6TestShapeInputService6TestCaseOperation1Input {
  1173. s.ListArg = v
  1174. return s
  1175. }
  1176. type InputService6TestShapeInputService6TestCaseOperation1Output struct {
  1177. _ struct{} `type:"structure"`
  1178. }
  1179. // InputService7ProtocolTest provides the API operation methods for making requests to
  1180. // . See this package's package overview docs
  1181. // for details on the service.
  1182. //
  1183. // InputService7ProtocolTest methods are safe to use concurrently. It is not safe to
  1184. // modify mutate any of the struct's properties though.
  1185. type InputService7ProtocolTest struct {
  1186. *client.Client
  1187. }
  1188. // New creates a new instance of the InputService7ProtocolTest client with a session.
  1189. // If additional configuration is needed for the client instance use the optional
  1190. // aws.Config parameter to add your extra config.
  1191. //
  1192. // Example:
  1193. // // Create a InputService7ProtocolTest client from just a session.
  1194. // svc := inputservice7protocoltest.New(mySession)
  1195. //
  1196. // // Create a InputService7ProtocolTest client with additional configuration
  1197. // svc := inputservice7protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1198. func NewInputService7ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService7ProtocolTest {
  1199. c := p.ClientConfig("inputservice7protocoltest", cfgs...)
  1200. return newInputService7ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  1201. }
  1202. // newClient creates, initializes and returns a new service client instance.
  1203. func newInputService7ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService7ProtocolTest {
  1204. svc := &InputService7ProtocolTest{
  1205. Client: client.New(
  1206. cfg,
  1207. metadata.ClientInfo{
  1208. ServiceName: "InputService7ProtocolTest",
  1209. ServiceID: "InputService7ProtocolTest",
  1210. SigningName: signingName,
  1211. SigningRegion: signingRegion,
  1212. Endpoint: endpoint,
  1213. APIVersion: "2014-01-01",
  1214. },
  1215. handlers,
  1216. ),
  1217. }
  1218. // Handlers
  1219. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1220. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1221. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1222. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1223. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1224. return svc
  1225. }
  1226. // newRequest creates a new request for a InputService7ProtocolTest operation and runs any
  1227. // custom request initialization.
  1228. func (c *InputService7ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1229. req := c.NewRequest(op, params, data)
  1230. return req
  1231. }
  1232. const opInputService7TestCaseOperation1 = "OperationName"
  1233. // InputService7TestCaseOperation1Request generates a "aws/request.Request" representing the
  1234. // client's request for the InputService7TestCaseOperation1 operation. The "output" return
  1235. // value will be populated with the request's response once the request completes
  1236. // successfully.
  1237. //
  1238. // Use "Send" method on the returned Request to send the API call to the service.
  1239. // the "output" return value is not valid until after Send returns without error.
  1240. //
  1241. // See InputService7TestCaseOperation1 for more information on using the InputService7TestCaseOperation1
  1242. // API call, and error handling.
  1243. //
  1244. // This method is useful when you want to inject custom logic or configuration
  1245. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1246. //
  1247. //
  1248. // // Example sending a request using the InputService7TestCaseOperation1Request method.
  1249. // req, resp := client.InputService7TestCaseOperation1Request(params)
  1250. //
  1251. // err := req.Send()
  1252. // if err == nil { // resp is now filled
  1253. // fmt.Println(resp)
  1254. // }
  1255. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1Request(input *InputService7TestShapeInputService7TestCaseOperation1Input) (req *request.Request, output *InputService7TestShapeInputService7TestCaseOperation1Output) {
  1256. op := &request.Operation{
  1257. Name: opInputService7TestCaseOperation1,
  1258. HTTPPath: "/",
  1259. }
  1260. if input == nil {
  1261. input = &InputService7TestShapeInputService7TestCaseOperation1Input{}
  1262. }
  1263. output = &InputService7TestShapeInputService7TestCaseOperation1Output{}
  1264. req = c.newRequest(op, input, output)
  1265. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1266. return
  1267. }
  1268. // InputService7TestCaseOperation1 API operation for .
  1269. //
  1270. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1271. // with awserr.Error's Code and Message methods to get detailed information about
  1272. // the error.
  1273. //
  1274. // See the AWS API reference guide for 's
  1275. // API operation InputService7TestCaseOperation1 for usage and error information.
  1276. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1(input *InputService7TestShapeInputService7TestCaseOperation1Input) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
  1277. req, out := c.InputService7TestCaseOperation1Request(input)
  1278. return out, req.Send()
  1279. }
  1280. // InputService7TestCaseOperation1WithContext is the same as InputService7TestCaseOperation1 with the addition of
  1281. // the ability to pass a context and additional request options.
  1282. //
  1283. // See InputService7TestCaseOperation1 for details on how to use this API operation.
  1284. //
  1285. // The context must be non-nil and will be used for request cancellation. If
  1286. // the context is nil a panic will occur. In the future the SDK may create
  1287. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1288. // for more information on using Contexts.
  1289. func (c *InputService7ProtocolTest) InputService7TestCaseOperation1WithContext(ctx aws.Context, input *InputService7TestShapeInputService7TestCaseOperation1Input, opts ...request.Option) (*InputService7TestShapeInputService7TestCaseOperation1Output, error) {
  1290. req, out := c.InputService7TestCaseOperation1Request(input)
  1291. req.SetContext(ctx)
  1292. req.ApplyOptions(opts...)
  1293. return out, req.Send()
  1294. }
  1295. type InputService7TestShapeInputService7TestCaseOperation1Input struct {
  1296. _ struct{} `type:"structure"`
  1297. ListArg []*string `locationNameList:"ListArgLocation" type:"list" flattened:"true"`
  1298. ScalarArg *string `type:"string"`
  1299. }
  1300. // SetListArg sets the ListArg field's value.
  1301. func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetListArg(v []*string) *InputService7TestShapeInputService7TestCaseOperation1Input {
  1302. s.ListArg = v
  1303. return s
  1304. }
  1305. // SetScalarArg sets the ScalarArg field's value.
  1306. func (s *InputService7TestShapeInputService7TestCaseOperation1Input) SetScalarArg(v string) *InputService7TestShapeInputService7TestCaseOperation1Input {
  1307. s.ScalarArg = &v
  1308. return s
  1309. }
  1310. type InputService7TestShapeInputService7TestCaseOperation1Output struct {
  1311. _ struct{} `type:"structure"`
  1312. }
  1313. // InputService8ProtocolTest provides the API operation methods for making requests to
  1314. // . See this package's package overview docs
  1315. // for details on the service.
  1316. //
  1317. // InputService8ProtocolTest methods are safe to use concurrently. It is not safe to
  1318. // modify mutate any of the struct's properties though.
  1319. type InputService8ProtocolTest struct {
  1320. *client.Client
  1321. }
  1322. // New creates a new instance of the InputService8ProtocolTest client with a session.
  1323. // If additional configuration is needed for the client instance use the optional
  1324. // aws.Config parameter to add your extra config.
  1325. //
  1326. // Example:
  1327. // // Create a InputService8ProtocolTest client from just a session.
  1328. // svc := inputservice8protocoltest.New(mySession)
  1329. //
  1330. // // Create a InputService8ProtocolTest client with additional configuration
  1331. // svc := inputservice8protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1332. func NewInputService8ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService8ProtocolTest {
  1333. c := p.ClientConfig("inputservice8protocoltest", cfgs...)
  1334. return newInputService8ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  1335. }
  1336. // newClient creates, initializes and returns a new service client instance.
  1337. func newInputService8ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService8ProtocolTest {
  1338. svc := &InputService8ProtocolTest{
  1339. Client: client.New(
  1340. cfg,
  1341. metadata.ClientInfo{
  1342. ServiceName: "InputService8ProtocolTest",
  1343. ServiceID: "InputService8ProtocolTest",
  1344. SigningName: signingName,
  1345. SigningRegion: signingRegion,
  1346. Endpoint: endpoint,
  1347. APIVersion: "2014-01-01",
  1348. },
  1349. handlers,
  1350. ),
  1351. }
  1352. // Handlers
  1353. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1354. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1355. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1356. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1357. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1358. return svc
  1359. }
  1360. // newRequest creates a new request for a InputService8ProtocolTest operation and runs any
  1361. // custom request initialization.
  1362. func (c *InputService8ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1363. req := c.NewRequest(op, params, data)
  1364. return req
  1365. }
  1366. const opInputService8TestCaseOperation1 = "OperationName"
  1367. // InputService8TestCaseOperation1Request generates a "aws/request.Request" representing the
  1368. // client's request for the InputService8TestCaseOperation1 operation. The "output" return
  1369. // value will be populated with the request's response once the request completes
  1370. // successfully.
  1371. //
  1372. // Use "Send" method on the returned Request to send the API call to the service.
  1373. // the "output" return value is not valid until after Send returns without error.
  1374. //
  1375. // See InputService8TestCaseOperation1 for more information on using the InputService8TestCaseOperation1
  1376. // API call, and error handling.
  1377. //
  1378. // This method is useful when you want to inject custom logic or configuration
  1379. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1380. //
  1381. //
  1382. // // Example sending a request using the InputService8TestCaseOperation1Request method.
  1383. // req, resp := client.InputService8TestCaseOperation1Request(params)
  1384. //
  1385. // err := req.Send()
  1386. // if err == nil { // resp is now filled
  1387. // fmt.Println(resp)
  1388. // }
  1389. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1Request(input *InputService8TestShapeInputService8TestCaseOperation1Input) (req *request.Request, output *InputService8TestShapeInputService8TestCaseOperation1Output) {
  1390. op := &request.Operation{
  1391. Name: opInputService8TestCaseOperation1,
  1392. HTTPPath: "/",
  1393. }
  1394. if input == nil {
  1395. input = &InputService8TestShapeInputService8TestCaseOperation1Input{}
  1396. }
  1397. output = &InputService8TestShapeInputService8TestCaseOperation1Output{}
  1398. req = c.newRequest(op, input, output)
  1399. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1400. return
  1401. }
  1402. // InputService8TestCaseOperation1 API operation for .
  1403. //
  1404. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1405. // with awserr.Error's Code and Message methods to get detailed information about
  1406. // the error.
  1407. //
  1408. // See the AWS API reference guide for 's
  1409. // API operation InputService8TestCaseOperation1 for usage and error information.
  1410. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1(input *InputService8TestShapeInputService8TestCaseOperation1Input) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
  1411. req, out := c.InputService8TestCaseOperation1Request(input)
  1412. return out, req.Send()
  1413. }
  1414. // InputService8TestCaseOperation1WithContext is the same as InputService8TestCaseOperation1 with the addition of
  1415. // the ability to pass a context and additional request options.
  1416. //
  1417. // See InputService8TestCaseOperation1 for details on how to use this API operation.
  1418. //
  1419. // The context must be non-nil and will be used for request cancellation. If
  1420. // the context is nil a panic will occur. In the future the SDK may create
  1421. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1422. // for more information on using Contexts.
  1423. func (c *InputService8ProtocolTest) InputService8TestCaseOperation1WithContext(ctx aws.Context, input *InputService8TestShapeInputService8TestCaseOperation1Input, opts ...request.Option) (*InputService8TestShapeInputService8TestCaseOperation1Output, error) {
  1424. req, out := c.InputService8TestCaseOperation1Request(input)
  1425. req.SetContext(ctx)
  1426. req.ApplyOptions(opts...)
  1427. return out, req.Send()
  1428. }
  1429. type InputService8TestShapeInputService8TestCaseOperation1Input struct {
  1430. _ struct{} `type:"structure"`
  1431. MapArg map[string]*string `type:"map"`
  1432. }
  1433. // SetMapArg sets the MapArg field's value.
  1434. func (s *InputService8TestShapeInputService8TestCaseOperation1Input) SetMapArg(v map[string]*string) *InputService8TestShapeInputService8TestCaseOperation1Input {
  1435. s.MapArg = v
  1436. return s
  1437. }
  1438. type InputService8TestShapeInputService8TestCaseOperation1Output struct {
  1439. _ struct{} `type:"structure"`
  1440. }
  1441. // InputService9ProtocolTest provides the API operation methods for making requests to
  1442. // . See this package's package overview docs
  1443. // for details on the service.
  1444. //
  1445. // InputService9ProtocolTest methods are safe to use concurrently. It is not safe to
  1446. // modify mutate any of the struct's properties though.
  1447. type InputService9ProtocolTest struct {
  1448. *client.Client
  1449. }
  1450. // New creates a new instance of the InputService9ProtocolTest client with a session.
  1451. // If additional configuration is needed for the client instance use the optional
  1452. // aws.Config parameter to add your extra config.
  1453. //
  1454. // Example:
  1455. // // Create a InputService9ProtocolTest client from just a session.
  1456. // svc := inputservice9protocoltest.New(mySession)
  1457. //
  1458. // // Create a InputService9ProtocolTest client with additional configuration
  1459. // svc := inputservice9protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1460. func NewInputService9ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService9ProtocolTest {
  1461. c := p.ClientConfig("inputservice9protocoltest", cfgs...)
  1462. return newInputService9ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  1463. }
  1464. // newClient creates, initializes and returns a new service client instance.
  1465. func newInputService9ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService9ProtocolTest {
  1466. svc := &InputService9ProtocolTest{
  1467. Client: client.New(
  1468. cfg,
  1469. metadata.ClientInfo{
  1470. ServiceName: "InputService9ProtocolTest",
  1471. ServiceID: "InputService9ProtocolTest",
  1472. SigningName: signingName,
  1473. SigningRegion: signingRegion,
  1474. Endpoint: endpoint,
  1475. APIVersion: "2014-01-01",
  1476. },
  1477. handlers,
  1478. ),
  1479. }
  1480. // Handlers
  1481. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1482. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1483. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1484. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1485. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1486. return svc
  1487. }
  1488. // newRequest creates a new request for a InputService9ProtocolTest operation and runs any
  1489. // custom request initialization.
  1490. func (c *InputService9ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1491. req := c.NewRequest(op, params, data)
  1492. return req
  1493. }
  1494. const opInputService9TestCaseOperation1 = "OperationName"
  1495. // InputService9TestCaseOperation1Request generates a "aws/request.Request" representing the
  1496. // client's request for the InputService9TestCaseOperation1 operation. The "output" return
  1497. // value will be populated with the request's response once the request completes
  1498. // successfully.
  1499. //
  1500. // Use "Send" method on the returned Request to send the API call to the service.
  1501. // the "output" return value is not valid until after Send returns without error.
  1502. //
  1503. // See InputService9TestCaseOperation1 for more information on using the InputService9TestCaseOperation1
  1504. // API call, and error handling.
  1505. //
  1506. // This method is useful when you want to inject custom logic or configuration
  1507. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1508. //
  1509. //
  1510. // // Example sending a request using the InputService9TestCaseOperation1Request method.
  1511. // req, resp := client.InputService9TestCaseOperation1Request(params)
  1512. //
  1513. // err := req.Send()
  1514. // if err == nil { // resp is now filled
  1515. // fmt.Println(resp)
  1516. // }
  1517. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1Request(input *InputService9TestShapeInputService9TestCaseOperation1Input) (req *request.Request, output *InputService9TestShapeInputService9TestCaseOperation1Output) {
  1518. op := &request.Operation{
  1519. Name: opInputService9TestCaseOperation1,
  1520. HTTPPath: "/",
  1521. }
  1522. if input == nil {
  1523. input = &InputService9TestShapeInputService9TestCaseOperation1Input{}
  1524. }
  1525. output = &InputService9TestShapeInputService9TestCaseOperation1Output{}
  1526. req = c.newRequest(op, input, output)
  1527. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1528. return
  1529. }
  1530. // InputService9TestCaseOperation1 API operation for .
  1531. //
  1532. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1533. // with awserr.Error's Code and Message methods to get detailed information about
  1534. // the error.
  1535. //
  1536. // See the AWS API reference guide for 's
  1537. // API operation InputService9TestCaseOperation1 for usage and error information.
  1538. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1(input *InputService9TestShapeInputService9TestCaseOperation1Input) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
  1539. req, out := c.InputService9TestCaseOperation1Request(input)
  1540. return out, req.Send()
  1541. }
  1542. // InputService9TestCaseOperation1WithContext is the same as InputService9TestCaseOperation1 with the addition of
  1543. // the ability to pass a context and additional request options.
  1544. //
  1545. // See InputService9TestCaseOperation1 for details on how to use this API operation.
  1546. //
  1547. // The context must be non-nil and will be used for request cancellation. If
  1548. // the context is nil a panic will occur. In the future the SDK may create
  1549. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1550. // for more information on using Contexts.
  1551. func (c *InputService9ProtocolTest) InputService9TestCaseOperation1WithContext(ctx aws.Context, input *InputService9TestShapeInputService9TestCaseOperation1Input, opts ...request.Option) (*InputService9TestShapeInputService9TestCaseOperation1Output, error) {
  1552. req, out := c.InputService9TestCaseOperation1Request(input)
  1553. req.SetContext(ctx)
  1554. req.ApplyOptions(opts...)
  1555. return out, req.Send()
  1556. }
  1557. type InputService9TestShapeInputService9TestCaseOperation1Input struct {
  1558. _ struct{} `type:"structure"`
  1559. MapArg map[string]*string `locationNameKey:"TheKey" locationNameValue:"TheValue" type:"map"`
  1560. }
  1561. // SetMapArg sets the MapArg field's value.
  1562. func (s *InputService9TestShapeInputService9TestCaseOperation1Input) SetMapArg(v map[string]*string) *InputService9TestShapeInputService9TestCaseOperation1Input {
  1563. s.MapArg = v
  1564. return s
  1565. }
  1566. type InputService9TestShapeInputService9TestCaseOperation1Output struct {
  1567. _ struct{} `type:"structure"`
  1568. }
  1569. // InputService10ProtocolTest provides the API operation methods for making requests to
  1570. // . See this package's package overview docs
  1571. // for details on the service.
  1572. //
  1573. // InputService10ProtocolTest methods are safe to use concurrently. It is not safe to
  1574. // modify mutate any of the struct's properties though.
  1575. type InputService10ProtocolTest struct {
  1576. *client.Client
  1577. }
  1578. // New creates a new instance of the InputService10ProtocolTest client with a session.
  1579. // If additional configuration is needed for the client instance use the optional
  1580. // aws.Config parameter to add your extra config.
  1581. //
  1582. // Example:
  1583. // // Create a InputService10ProtocolTest client from just a session.
  1584. // svc := inputservice10protocoltest.New(mySession)
  1585. //
  1586. // // Create a InputService10ProtocolTest client with additional configuration
  1587. // svc := inputservice10protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1588. func NewInputService10ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService10ProtocolTest {
  1589. c := p.ClientConfig("inputservice10protocoltest", cfgs...)
  1590. return newInputService10ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  1591. }
  1592. // newClient creates, initializes and returns a new service client instance.
  1593. func newInputService10ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService10ProtocolTest {
  1594. svc := &InputService10ProtocolTest{
  1595. Client: client.New(
  1596. cfg,
  1597. metadata.ClientInfo{
  1598. ServiceName: "InputService10ProtocolTest",
  1599. ServiceID: "InputService10ProtocolTest",
  1600. SigningName: signingName,
  1601. SigningRegion: signingRegion,
  1602. Endpoint: endpoint,
  1603. APIVersion: "2014-01-01",
  1604. },
  1605. handlers,
  1606. ),
  1607. }
  1608. // Handlers
  1609. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1610. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1611. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1612. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1613. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1614. return svc
  1615. }
  1616. // newRequest creates a new request for a InputService10ProtocolTest operation and runs any
  1617. // custom request initialization.
  1618. func (c *InputService10ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1619. req := c.NewRequest(op, params, data)
  1620. return req
  1621. }
  1622. const opInputService10TestCaseOperation1 = "OperationName"
  1623. // InputService10TestCaseOperation1Request generates a "aws/request.Request" representing the
  1624. // client's request for the InputService10TestCaseOperation1 operation. The "output" return
  1625. // value will be populated with the request's response once the request completes
  1626. // successfully.
  1627. //
  1628. // Use "Send" method on the returned Request to send the API call to the service.
  1629. // the "output" return value is not valid until after Send returns without error.
  1630. //
  1631. // See InputService10TestCaseOperation1 for more information on using the InputService10TestCaseOperation1
  1632. // API call, and error handling.
  1633. //
  1634. // This method is useful when you want to inject custom logic or configuration
  1635. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1636. //
  1637. //
  1638. // // Example sending a request using the InputService10TestCaseOperation1Request method.
  1639. // req, resp := client.InputService10TestCaseOperation1Request(params)
  1640. //
  1641. // err := req.Send()
  1642. // if err == nil { // resp is now filled
  1643. // fmt.Println(resp)
  1644. // }
  1645. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1Request(input *InputService10TestShapeInputService10TestCaseOperation1Input) (req *request.Request, output *InputService10TestShapeInputService10TestCaseOperation1Output) {
  1646. op := &request.Operation{
  1647. Name: opInputService10TestCaseOperation1,
  1648. HTTPPath: "/",
  1649. }
  1650. if input == nil {
  1651. input = &InputService10TestShapeInputService10TestCaseOperation1Input{}
  1652. }
  1653. output = &InputService10TestShapeInputService10TestCaseOperation1Output{}
  1654. req = c.newRequest(op, input, output)
  1655. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1656. return
  1657. }
  1658. // InputService10TestCaseOperation1 API operation for .
  1659. //
  1660. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1661. // with awserr.Error's Code and Message methods to get detailed information about
  1662. // the error.
  1663. //
  1664. // See the AWS API reference guide for 's
  1665. // API operation InputService10TestCaseOperation1 for usage and error information.
  1666. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1(input *InputService10TestShapeInputService10TestCaseOperation1Input) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
  1667. req, out := c.InputService10TestCaseOperation1Request(input)
  1668. return out, req.Send()
  1669. }
  1670. // InputService10TestCaseOperation1WithContext is the same as InputService10TestCaseOperation1 with the addition of
  1671. // the ability to pass a context and additional request options.
  1672. //
  1673. // See InputService10TestCaseOperation1 for details on how to use this API operation.
  1674. //
  1675. // The context must be non-nil and will be used for request cancellation. If
  1676. // the context is nil a panic will occur. In the future the SDK may create
  1677. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1678. // for more information on using Contexts.
  1679. func (c *InputService10ProtocolTest) InputService10TestCaseOperation1WithContext(ctx aws.Context, input *InputService10TestShapeInputService10TestCaseOperation1Input, opts ...request.Option) (*InputService10TestShapeInputService10TestCaseOperation1Output, error) {
  1680. req, out := c.InputService10TestCaseOperation1Request(input)
  1681. req.SetContext(ctx)
  1682. req.ApplyOptions(opts...)
  1683. return out, req.Send()
  1684. }
  1685. type InputService10TestShapeInputService10TestCaseOperation1Input struct {
  1686. _ struct{} `type:"structure"`
  1687. // BlobArg is automatically base64 encoded/decoded by the SDK.
  1688. BlobArg []byte `type:"blob"`
  1689. }
  1690. // SetBlobArg sets the BlobArg field's value.
  1691. func (s *InputService10TestShapeInputService10TestCaseOperation1Input) SetBlobArg(v []byte) *InputService10TestShapeInputService10TestCaseOperation1Input {
  1692. s.BlobArg = v
  1693. return s
  1694. }
  1695. type InputService10TestShapeInputService10TestCaseOperation1Output struct {
  1696. _ struct{} `type:"structure"`
  1697. }
  1698. // InputService11ProtocolTest provides the API operation methods for making requests to
  1699. // . See this package's package overview docs
  1700. // for details on the service.
  1701. //
  1702. // InputService11ProtocolTest methods are safe to use concurrently. It is not safe to
  1703. // modify mutate any of the struct's properties though.
  1704. type InputService11ProtocolTest struct {
  1705. *client.Client
  1706. }
  1707. // New creates a new instance of the InputService11ProtocolTest client with a session.
  1708. // If additional configuration is needed for the client instance use the optional
  1709. // aws.Config parameter to add your extra config.
  1710. //
  1711. // Example:
  1712. // // Create a InputService11ProtocolTest client from just a session.
  1713. // svc := inputservice11protocoltest.New(mySession)
  1714. //
  1715. // // Create a InputService11ProtocolTest client with additional configuration
  1716. // svc := inputservice11protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1717. func NewInputService11ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService11ProtocolTest {
  1718. c := p.ClientConfig("inputservice11protocoltest", cfgs...)
  1719. return newInputService11ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  1720. }
  1721. // newClient creates, initializes and returns a new service client instance.
  1722. func newInputService11ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService11ProtocolTest {
  1723. svc := &InputService11ProtocolTest{
  1724. Client: client.New(
  1725. cfg,
  1726. metadata.ClientInfo{
  1727. ServiceName: "InputService11ProtocolTest",
  1728. ServiceID: "InputService11ProtocolTest",
  1729. SigningName: signingName,
  1730. SigningRegion: signingRegion,
  1731. Endpoint: endpoint,
  1732. APIVersion: "2014-01-01",
  1733. },
  1734. handlers,
  1735. ),
  1736. }
  1737. // Handlers
  1738. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1739. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1740. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1741. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1742. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1743. return svc
  1744. }
  1745. // newRequest creates a new request for a InputService11ProtocolTest operation and runs any
  1746. // custom request initialization.
  1747. func (c *InputService11ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1748. req := c.NewRequest(op, params, data)
  1749. return req
  1750. }
  1751. const opInputService11TestCaseOperation1 = "OperationName"
  1752. // InputService11TestCaseOperation1Request generates a "aws/request.Request" representing the
  1753. // client's request for the InputService11TestCaseOperation1 operation. The "output" return
  1754. // value will be populated with the request's response once the request completes
  1755. // successfully.
  1756. //
  1757. // Use "Send" method on the returned Request to send the API call to the service.
  1758. // the "output" return value is not valid until after Send returns without error.
  1759. //
  1760. // See InputService11TestCaseOperation1 for more information on using the InputService11TestCaseOperation1
  1761. // API call, and error handling.
  1762. //
  1763. // This method is useful when you want to inject custom logic or configuration
  1764. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1765. //
  1766. //
  1767. // // Example sending a request using the InputService11TestCaseOperation1Request method.
  1768. // req, resp := client.InputService11TestCaseOperation1Request(params)
  1769. //
  1770. // err := req.Send()
  1771. // if err == nil { // resp is now filled
  1772. // fmt.Println(resp)
  1773. // }
  1774. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1Request(input *InputService11TestShapeInputService11TestCaseOperation1Input) (req *request.Request, output *InputService11TestShapeInputService11TestCaseOperation1Output) {
  1775. op := &request.Operation{
  1776. Name: opInputService11TestCaseOperation1,
  1777. HTTPPath: "/",
  1778. }
  1779. if input == nil {
  1780. input = &InputService11TestShapeInputService11TestCaseOperation1Input{}
  1781. }
  1782. output = &InputService11TestShapeInputService11TestCaseOperation1Output{}
  1783. req = c.newRequest(op, input, output)
  1784. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1785. return
  1786. }
  1787. // InputService11TestCaseOperation1 API operation for .
  1788. //
  1789. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1790. // with awserr.Error's Code and Message methods to get detailed information about
  1791. // the error.
  1792. //
  1793. // See the AWS API reference guide for 's
  1794. // API operation InputService11TestCaseOperation1 for usage and error information.
  1795. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1(input *InputService11TestShapeInputService11TestCaseOperation1Input) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
  1796. req, out := c.InputService11TestCaseOperation1Request(input)
  1797. return out, req.Send()
  1798. }
  1799. // InputService11TestCaseOperation1WithContext is the same as InputService11TestCaseOperation1 with the addition of
  1800. // the ability to pass a context and additional request options.
  1801. //
  1802. // See InputService11TestCaseOperation1 for details on how to use this API operation.
  1803. //
  1804. // The context must be non-nil and will be used for request cancellation. If
  1805. // the context is nil a panic will occur. In the future the SDK may create
  1806. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1807. // for more information on using Contexts.
  1808. func (c *InputService11ProtocolTest) InputService11TestCaseOperation1WithContext(ctx aws.Context, input *InputService11TestShapeInputService11TestCaseOperation1Input, opts ...request.Option) (*InputService11TestShapeInputService11TestCaseOperation1Output, error) {
  1809. req, out := c.InputService11TestCaseOperation1Request(input)
  1810. req.SetContext(ctx)
  1811. req.ApplyOptions(opts...)
  1812. return out, req.Send()
  1813. }
  1814. type InputService11TestShapeInputService11TestCaseOperation1Input struct {
  1815. _ struct{} `type:"structure"`
  1816. BlobArgs [][]byte `type:"list" flattened:"true"`
  1817. }
  1818. // SetBlobArgs sets the BlobArgs field's value.
  1819. func (s *InputService11TestShapeInputService11TestCaseOperation1Input) SetBlobArgs(v [][]byte) *InputService11TestShapeInputService11TestCaseOperation1Input {
  1820. s.BlobArgs = v
  1821. return s
  1822. }
  1823. type InputService11TestShapeInputService11TestCaseOperation1Output struct {
  1824. _ struct{} `type:"structure"`
  1825. }
  1826. // InputService12ProtocolTest provides the API operation methods for making requests to
  1827. // . See this package's package overview docs
  1828. // for details on the service.
  1829. //
  1830. // InputService12ProtocolTest methods are safe to use concurrently. It is not safe to
  1831. // modify mutate any of the struct's properties though.
  1832. type InputService12ProtocolTest struct {
  1833. *client.Client
  1834. }
  1835. // New creates a new instance of the InputService12ProtocolTest client with a session.
  1836. // If additional configuration is needed for the client instance use the optional
  1837. // aws.Config parameter to add your extra config.
  1838. //
  1839. // Example:
  1840. // // Create a InputService12ProtocolTest client from just a session.
  1841. // svc := inputservice12protocoltest.New(mySession)
  1842. //
  1843. // // Create a InputService12ProtocolTest client with additional configuration
  1844. // svc := inputservice12protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1845. func NewInputService12ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService12ProtocolTest {
  1846. c := p.ClientConfig("inputservice12protocoltest", cfgs...)
  1847. return newInputService12ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  1848. }
  1849. // newClient creates, initializes and returns a new service client instance.
  1850. func newInputService12ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService12ProtocolTest {
  1851. svc := &InputService12ProtocolTest{
  1852. Client: client.New(
  1853. cfg,
  1854. metadata.ClientInfo{
  1855. ServiceName: "InputService12ProtocolTest",
  1856. ServiceID: "InputService12ProtocolTest",
  1857. SigningName: signingName,
  1858. SigningRegion: signingRegion,
  1859. Endpoint: endpoint,
  1860. APIVersion: "2014-01-01",
  1861. },
  1862. handlers,
  1863. ),
  1864. }
  1865. // Handlers
  1866. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  1867. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  1868. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  1869. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  1870. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  1871. return svc
  1872. }
  1873. // newRequest creates a new request for a InputService12ProtocolTest operation and runs any
  1874. // custom request initialization.
  1875. func (c *InputService12ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  1876. req := c.NewRequest(op, params, data)
  1877. return req
  1878. }
  1879. const opInputService12TestCaseOperation1 = "OperationName"
  1880. // InputService12TestCaseOperation1Request generates a "aws/request.Request" representing the
  1881. // client's request for the InputService12TestCaseOperation1 operation. The "output" return
  1882. // value will be populated with the request's response once the request completes
  1883. // successfully.
  1884. //
  1885. // Use "Send" method on the returned Request to send the API call to the service.
  1886. // the "output" return value is not valid until after Send returns without error.
  1887. //
  1888. // See InputService12TestCaseOperation1 for more information on using the InputService12TestCaseOperation1
  1889. // API call, and error handling.
  1890. //
  1891. // This method is useful when you want to inject custom logic or configuration
  1892. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  1893. //
  1894. //
  1895. // // Example sending a request using the InputService12TestCaseOperation1Request method.
  1896. // req, resp := client.InputService12TestCaseOperation1Request(params)
  1897. //
  1898. // err := req.Send()
  1899. // if err == nil { // resp is now filled
  1900. // fmt.Println(resp)
  1901. // }
  1902. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1Request(input *InputService12TestShapeInputService12TestCaseOperation1Input) (req *request.Request, output *InputService12TestShapeInputService12TestCaseOperation1Output) {
  1903. op := &request.Operation{
  1904. Name: opInputService12TestCaseOperation1,
  1905. HTTPPath: "/",
  1906. }
  1907. if input == nil {
  1908. input = &InputService12TestShapeInputService12TestCaseOperation1Input{}
  1909. }
  1910. output = &InputService12TestShapeInputService12TestCaseOperation1Output{}
  1911. req = c.newRequest(op, input, output)
  1912. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  1913. return
  1914. }
  1915. // InputService12TestCaseOperation1 API operation for .
  1916. //
  1917. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  1918. // with awserr.Error's Code and Message methods to get detailed information about
  1919. // the error.
  1920. //
  1921. // See the AWS API reference guide for 's
  1922. // API operation InputService12TestCaseOperation1 for usage and error information.
  1923. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1(input *InputService12TestShapeInputService12TestCaseOperation1Input) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
  1924. req, out := c.InputService12TestCaseOperation1Request(input)
  1925. return out, req.Send()
  1926. }
  1927. // InputService12TestCaseOperation1WithContext is the same as InputService12TestCaseOperation1 with the addition of
  1928. // the ability to pass a context and additional request options.
  1929. //
  1930. // See InputService12TestCaseOperation1 for details on how to use this API operation.
  1931. //
  1932. // The context must be non-nil and will be used for request cancellation. If
  1933. // the context is nil a panic will occur. In the future the SDK may create
  1934. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  1935. // for more information on using Contexts.
  1936. func (c *InputService12ProtocolTest) InputService12TestCaseOperation1WithContext(ctx aws.Context, input *InputService12TestShapeInputService12TestCaseOperation1Input, opts ...request.Option) (*InputService12TestShapeInputService12TestCaseOperation1Output, error) {
  1937. req, out := c.InputService12TestCaseOperation1Request(input)
  1938. req.SetContext(ctx)
  1939. req.ApplyOptions(opts...)
  1940. return out, req.Send()
  1941. }
  1942. type InputService12TestShapeInputService12TestCaseOperation1Input struct {
  1943. _ struct{} `type:"structure"`
  1944. TimeArg *time.Time `type:"timestamp"`
  1945. TimeCustom *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
  1946. TimeFormat *time.Time `type:"timestamp" timestampFormat:"unixTimestamp"`
  1947. }
  1948. // SetTimeArg sets the TimeArg field's value.
  1949. func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetTimeArg(v time.Time) *InputService12TestShapeInputService12TestCaseOperation1Input {
  1950. s.TimeArg = &v
  1951. return s
  1952. }
  1953. // SetTimeCustom sets the TimeCustom field's value.
  1954. func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetTimeCustom(v time.Time) *InputService12TestShapeInputService12TestCaseOperation1Input {
  1955. s.TimeCustom = &v
  1956. return s
  1957. }
  1958. // SetTimeFormat sets the TimeFormat field's value.
  1959. func (s *InputService12TestShapeInputService12TestCaseOperation1Input) SetTimeFormat(v time.Time) *InputService12TestShapeInputService12TestCaseOperation1Input {
  1960. s.TimeFormat = &v
  1961. return s
  1962. }
  1963. type InputService12TestShapeInputService12TestCaseOperation1Output struct {
  1964. _ struct{} `type:"structure"`
  1965. }
  1966. // InputService13ProtocolTest provides the API operation methods for making requests to
  1967. // . See this package's package overview docs
  1968. // for details on the service.
  1969. //
  1970. // InputService13ProtocolTest methods are safe to use concurrently. It is not safe to
  1971. // modify mutate any of the struct's properties though.
  1972. type InputService13ProtocolTest struct {
  1973. *client.Client
  1974. }
  1975. // New creates a new instance of the InputService13ProtocolTest client with a session.
  1976. // If additional configuration is needed for the client instance use the optional
  1977. // aws.Config parameter to add your extra config.
  1978. //
  1979. // Example:
  1980. // // Create a InputService13ProtocolTest client from just a session.
  1981. // svc := inputservice13protocoltest.New(mySession)
  1982. //
  1983. // // Create a InputService13ProtocolTest client with additional configuration
  1984. // svc := inputservice13protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  1985. func NewInputService13ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService13ProtocolTest {
  1986. c := p.ClientConfig("inputservice13protocoltest", cfgs...)
  1987. return newInputService13ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  1988. }
  1989. // newClient creates, initializes and returns a new service client instance.
  1990. func newInputService13ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService13ProtocolTest {
  1991. svc := &InputService13ProtocolTest{
  1992. Client: client.New(
  1993. cfg,
  1994. metadata.ClientInfo{
  1995. ServiceName: "InputService13ProtocolTest",
  1996. ServiceID: "InputService13ProtocolTest",
  1997. SigningName: signingName,
  1998. SigningRegion: signingRegion,
  1999. Endpoint: endpoint,
  2000. APIVersion: "2014-01-01",
  2001. },
  2002. handlers,
  2003. ),
  2004. }
  2005. // Handlers
  2006. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2007. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  2008. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  2009. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  2010. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  2011. return svc
  2012. }
  2013. // newRequest creates a new request for a InputService13ProtocolTest operation and runs any
  2014. // custom request initialization.
  2015. func (c *InputService13ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2016. req := c.NewRequest(op, params, data)
  2017. return req
  2018. }
  2019. const opInputService13TestCaseOperation1 = "OperationName"
  2020. // InputService13TestCaseOperation1Request generates a "aws/request.Request" representing the
  2021. // client's request for the InputService13TestCaseOperation1 operation. The "output" return
  2022. // value will be populated with the request's response once the request completes
  2023. // successfully.
  2024. //
  2025. // Use "Send" method on the returned Request to send the API call to the service.
  2026. // the "output" return value is not valid until after Send returns without error.
  2027. //
  2028. // See InputService13TestCaseOperation1 for more information on using the InputService13TestCaseOperation1
  2029. // API call, and error handling.
  2030. //
  2031. // This method is useful when you want to inject custom logic or configuration
  2032. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2033. //
  2034. //
  2035. // // Example sending a request using the InputService13TestCaseOperation1Request method.
  2036. // req, resp := client.InputService13TestCaseOperation1Request(params)
  2037. //
  2038. // err := req.Send()
  2039. // if err == nil { // resp is now filled
  2040. // fmt.Println(resp)
  2041. // }
  2042. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1Request(input *InputService13TestShapeInputService13TestCaseOperation1Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation1Output) {
  2043. op := &request.Operation{
  2044. Name: opInputService13TestCaseOperation1,
  2045. HTTPPath: "/",
  2046. }
  2047. if input == nil {
  2048. input = &InputService13TestShapeInputService13TestCaseOperation1Input{}
  2049. }
  2050. output = &InputService13TestShapeInputService13TestCaseOperation1Output{}
  2051. req = c.newRequest(op, input, output)
  2052. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2053. return
  2054. }
  2055. // InputService13TestCaseOperation1 API operation for .
  2056. //
  2057. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2058. // with awserr.Error's Code and Message methods to get detailed information about
  2059. // the error.
  2060. //
  2061. // See the AWS API reference guide for 's
  2062. // API operation InputService13TestCaseOperation1 for usage and error information.
  2063. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1(input *InputService13TestShapeInputService13TestCaseOperation1Input) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
  2064. req, out := c.InputService13TestCaseOperation1Request(input)
  2065. return out, req.Send()
  2066. }
  2067. // InputService13TestCaseOperation1WithContext is the same as InputService13TestCaseOperation1 with the addition of
  2068. // the ability to pass a context and additional request options.
  2069. //
  2070. // See InputService13TestCaseOperation1 for details on how to use this API operation.
  2071. //
  2072. // The context must be non-nil and will be used for request cancellation. If
  2073. // the context is nil a panic will occur. In the future the SDK may create
  2074. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2075. // for more information on using Contexts.
  2076. func (c *InputService13ProtocolTest) InputService13TestCaseOperation1WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation1Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation1Output, error) {
  2077. req, out := c.InputService13TestCaseOperation1Request(input)
  2078. req.SetContext(ctx)
  2079. req.ApplyOptions(opts...)
  2080. return out, req.Send()
  2081. }
  2082. const opInputService13TestCaseOperation2 = "OperationName"
  2083. // InputService13TestCaseOperation2Request generates a "aws/request.Request" representing the
  2084. // client's request for the InputService13TestCaseOperation2 operation. The "output" return
  2085. // value will be populated with the request's response once the request completes
  2086. // successfully.
  2087. //
  2088. // Use "Send" method on the returned Request to send the API call to the service.
  2089. // the "output" return value is not valid until after Send returns without error.
  2090. //
  2091. // See InputService13TestCaseOperation2 for more information on using the InputService13TestCaseOperation2
  2092. // API call, and error handling.
  2093. //
  2094. // This method is useful when you want to inject custom logic or configuration
  2095. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2096. //
  2097. //
  2098. // // Example sending a request using the InputService13TestCaseOperation2Request method.
  2099. // req, resp := client.InputService13TestCaseOperation2Request(params)
  2100. //
  2101. // err := req.Send()
  2102. // if err == nil { // resp is now filled
  2103. // fmt.Println(resp)
  2104. // }
  2105. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2Request(input *InputService13TestShapeInputService13TestCaseOperation2Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation2Output) {
  2106. op := &request.Operation{
  2107. Name: opInputService13TestCaseOperation2,
  2108. HTTPPath: "/",
  2109. }
  2110. if input == nil {
  2111. input = &InputService13TestShapeInputService13TestCaseOperation2Input{}
  2112. }
  2113. output = &InputService13TestShapeInputService13TestCaseOperation2Output{}
  2114. req = c.newRequest(op, input, output)
  2115. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2116. return
  2117. }
  2118. // InputService13TestCaseOperation2 API operation for .
  2119. //
  2120. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2121. // with awserr.Error's Code and Message methods to get detailed information about
  2122. // the error.
  2123. //
  2124. // See the AWS API reference guide for 's
  2125. // API operation InputService13TestCaseOperation2 for usage and error information.
  2126. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2(input *InputService13TestShapeInputService13TestCaseOperation2Input) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) {
  2127. req, out := c.InputService13TestCaseOperation2Request(input)
  2128. return out, req.Send()
  2129. }
  2130. // InputService13TestCaseOperation2WithContext is the same as InputService13TestCaseOperation2 with the addition of
  2131. // the ability to pass a context and additional request options.
  2132. //
  2133. // See InputService13TestCaseOperation2 for details on how to use this API operation.
  2134. //
  2135. // The context must be non-nil and will be used for request cancellation. If
  2136. // the context is nil a panic will occur. In the future the SDK may create
  2137. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2138. // for more information on using Contexts.
  2139. func (c *InputService13ProtocolTest) InputService13TestCaseOperation2WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation2Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation2Output, error) {
  2140. req, out := c.InputService13TestCaseOperation2Request(input)
  2141. req.SetContext(ctx)
  2142. req.ApplyOptions(opts...)
  2143. return out, req.Send()
  2144. }
  2145. const opInputService13TestCaseOperation3 = "OperationName"
  2146. // InputService13TestCaseOperation3Request generates a "aws/request.Request" representing the
  2147. // client's request for the InputService13TestCaseOperation3 operation. The "output" return
  2148. // value will be populated with the request's response once the request completes
  2149. // successfully.
  2150. //
  2151. // Use "Send" method on the returned Request to send the API call to the service.
  2152. // the "output" return value is not valid until after Send returns without error.
  2153. //
  2154. // See InputService13TestCaseOperation3 for more information on using the InputService13TestCaseOperation3
  2155. // API call, and error handling.
  2156. //
  2157. // This method is useful when you want to inject custom logic or configuration
  2158. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2159. //
  2160. //
  2161. // // Example sending a request using the InputService13TestCaseOperation3Request method.
  2162. // req, resp := client.InputService13TestCaseOperation3Request(params)
  2163. //
  2164. // err := req.Send()
  2165. // if err == nil { // resp is now filled
  2166. // fmt.Println(resp)
  2167. // }
  2168. func (c *InputService13ProtocolTest) InputService13TestCaseOperation3Request(input *InputService13TestShapeInputService13TestCaseOperation3Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation3Output) {
  2169. op := &request.Operation{
  2170. Name: opInputService13TestCaseOperation3,
  2171. HTTPPath: "/",
  2172. }
  2173. if input == nil {
  2174. input = &InputService13TestShapeInputService13TestCaseOperation3Input{}
  2175. }
  2176. output = &InputService13TestShapeInputService13TestCaseOperation3Output{}
  2177. req = c.newRequest(op, input, output)
  2178. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2179. return
  2180. }
  2181. // InputService13TestCaseOperation3 API operation for .
  2182. //
  2183. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2184. // with awserr.Error's Code and Message methods to get detailed information about
  2185. // the error.
  2186. //
  2187. // See the AWS API reference guide for 's
  2188. // API operation InputService13TestCaseOperation3 for usage and error information.
  2189. func (c *InputService13ProtocolTest) InputService13TestCaseOperation3(input *InputService13TestShapeInputService13TestCaseOperation3Input) (*InputService13TestShapeInputService13TestCaseOperation3Output, error) {
  2190. req, out := c.InputService13TestCaseOperation3Request(input)
  2191. return out, req.Send()
  2192. }
  2193. // InputService13TestCaseOperation3WithContext is the same as InputService13TestCaseOperation3 with the addition of
  2194. // the ability to pass a context and additional request options.
  2195. //
  2196. // See InputService13TestCaseOperation3 for details on how to use this API operation.
  2197. //
  2198. // The context must be non-nil and will be used for request cancellation. If
  2199. // the context is nil a panic will occur. In the future the SDK may create
  2200. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2201. // for more information on using Contexts.
  2202. func (c *InputService13ProtocolTest) InputService13TestCaseOperation3WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation3Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation3Output, error) {
  2203. req, out := c.InputService13TestCaseOperation3Request(input)
  2204. req.SetContext(ctx)
  2205. req.ApplyOptions(opts...)
  2206. return out, req.Send()
  2207. }
  2208. const opInputService13TestCaseOperation4 = "OperationName"
  2209. // InputService13TestCaseOperation4Request generates a "aws/request.Request" representing the
  2210. // client's request for the InputService13TestCaseOperation4 operation. The "output" return
  2211. // value will be populated with the request's response once the request completes
  2212. // successfully.
  2213. //
  2214. // Use "Send" method on the returned Request to send the API call to the service.
  2215. // the "output" return value is not valid until after Send returns without error.
  2216. //
  2217. // See InputService13TestCaseOperation4 for more information on using the InputService13TestCaseOperation4
  2218. // API call, and error handling.
  2219. //
  2220. // This method is useful when you want to inject custom logic or configuration
  2221. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2222. //
  2223. //
  2224. // // Example sending a request using the InputService13TestCaseOperation4Request method.
  2225. // req, resp := client.InputService13TestCaseOperation4Request(params)
  2226. //
  2227. // err := req.Send()
  2228. // if err == nil { // resp is now filled
  2229. // fmt.Println(resp)
  2230. // }
  2231. func (c *InputService13ProtocolTest) InputService13TestCaseOperation4Request(input *InputService13TestShapeInputService13TestCaseOperation4Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation4Output) {
  2232. op := &request.Operation{
  2233. Name: opInputService13TestCaseOperation4,
  2234. HTTPPath: "/",
  2235. }
  2236. if input == nil {
  2237. input = &InputService13TestShapeInputService13TestCaseOperation4Input{}
  2238. }
  2239. output = &InputService13TestShapeInputService13TestCaseOperation4Output{}
  2240. req = c.newRequest(op, input, output)
  2241. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2242. return
  2243. }
  2244. // InputService13TestCaseOperation4 API operation for .
  2245. //
  2246. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2247. // with awserr.Error's Code and Message methods to get detailed information about
  2248. // the error.
  2249. //
  2250. // See the AWS API reference guide for 's
  2251. // API operation InputService13TestCaseOperation4 for usage and error information.
  2252. func (c *InputService13ProtocolTest) InputService13TestCaseOperation4(input *InputService13TestShapeInputService13TestCaseOperation4Input) (*InputService13TestShapeInputService13TestCaseOperation4Output, error) {
  2253. req, out := c.InputService13TestCaseOperation4Request(input)
  2254. return out, req.Send()
  2255. }
  2256. // InputService13TestCaseOperation4WithContext is the same as InputService13TestCaseOperation4 with the addition of
  2257. // the ability to pass a context and additional request options.
  2258. //
  2259. // See InputService13TestCaseOperation4 for details on how to use this API operation.
  2260. //
  2261. // The context must be non-nil and will be used for request cancellation. If
  2262. // the context is nil a panic will occur. In the future the SDK may create
  2263. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2264. // for more information on using Contexts.
  2265. func (c *InputService13ProtocolTest) InputService13TestCaseOperation4WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation4Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation4Output, error) {
  2266. req, out := c.InputService13TestCaseOperation4Request(input)
  2267. req.SetContext(ctx)
  2268. req.ApplyOptions(opts...)
  2269. return out, req.Send()
  2270. }
  2271. const opInputService13TestCaseOperation5 = "OperationName"
  2272. // InputService13TestCaseOperation5Request generates a "aws/request.Request" representing the
  2273. // client's request for the InputService13TestCaseOperation5 operation. The "output" return
  2274. // value will be populated with the request's response once the request completes
  2275. // successfully.
  2276. //
  2277. // Use "Send" method on the returned Request to send the API call to the service.
  2278. // the "output" return value is not valid until after Send returns without error.
  2279. //
  2280. // See InputService13TestCaseOperation5 for more information on using the InputService13TestCaseOperation5
  2281. // API call, and error handling.
  2282. //
  2283. // This method is useful when you want to inject custom logic or configuration
  2284. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2285. //
  2286. //
  2287. // // Example sending a request using the InputService13TestCaseOperation5Request method.
  2288. // req, resp := client.InputService13TestCaseOperation5Request(params)
  2289. //
  2290. // err := req.Send()
  2291. // if err == nil { // resp is now filled
  2292. // fmt.Println(resp)
  2293. // }
  2294. func (c *InputService13ProtocolTest) InputService13TestCaseOperation5Request(input *InputService13TestShapeInputService13TestCaseOperation5Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation5Output) {
  2295. op := &request.Operation{
  2296. Name: opInputService13TestCaseOperation5,
  2297. HTTPPath: "/",
  2298. }
  2299. if input == nil {
  2300. input = &InputService13TestShapeInputService13TestCaseOperation5Input{}
  2301. }
  2302. output = &InputService13TestShapeInputService13TestCaseOperation5Output{}
  2303. req = c.newRequest(op, input, output)
  2304. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2305. return
  2306. }
  2307. // InputService13TestCaseOperation5 API operation for .
  2308. //
  2309. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2310. // with awserr.Error's Code and Message methods to get detailed information about
  2311. // the error.
  2312. //
  2313. // See the AWS API reference guide for 's
  2314. // API operation InputService13TestCaseOperation5 for usage and error information.
  2315. func (c *InputService13ProtocolTest) InputService13TestCaseOperation5(input *InputService13TestShapeInputService13TestCaseOperation5Input) (*InputService13TestShapeInputService13TestCaseOperation5Output, error) {
  2316. req, out := c.InputService13TestCaseOperation5Request(input)
  2317. return out, req.Send()
  2318. }
  2319. // InputService13TestCaseOperation5WithContext is the same as InputService13TestCaseOperation5 with the addition of
  2320. // the ability to pass a context and additional request options.
  2321. //
  2322. // See InputService13TestCaseOperation5 for details on how to use this API operation.
  2323. //
  2324. // The context must be non-nil and will be used for request cancellation. If
  2325. // the context is nil a panic will occur. In the future the SDK may create
  2326. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2327. // for more information on using Contexts.
  2328. func (c *InputService13ProtocolTest) InputService13TestCaseOperation5WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation5Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation5Output, error) {
  2329. req, out := c.InputService13TestCaseOperation5Request(input)
  2330. req.SetContext(ctx)
  2331. req.ApplyOptions(opts...)
  2332. return out, req.Send()
  2333. }
  2334. const opInputService13TestCaseOperation6 = "OperationName"
  2335. // InputService13TestCaseOperation6Request generates a "aws/request.Request" representing the
  2336. // client's request for the InputService13TestCaseOperation6 operation. The "output" return
  2337. // value will be populated with the request's response once the request completes
  2338. // successfully.
  2339. //
  2340. // Use "Send" method on the returned Request to send the API call to the service.
  2341. // the "output" return value is not valid until after Send returns without error.
  2342. //
  2343. // See InputService13TestCaseOperation6 for more information on using the InputService13TestCaseOperation6
  2344. // API call, and error handling.
  2345. //
  2346. // This method is useful when you want to inject custom logic or configuration
  2347. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2348. //
  2349. //
  2350. // // Example sending a request using the InputService13TestCaseOperation6Request method.
  2351. // req, resp := client.InputService13TestCaseOperation6Request(params)
  2352. //
  2353. // err := req.Send()
  2354. // if err == nil { // resp is now filled
  2355. // fmt.Println(resp)
  2356. // }
  2357. func (c *InputService13ProtocolTest) InputService13TestCaseOperation6Request(input *InputService13TestShapeInputService13TestCaseOperation6Input) (req *request.Request, output *InputService13TestShapeInputService13TestCaseOperation6Output) {
  2358. op := &request.Operation{
  2359. Name: opInputService13TestCaseOperation6,
  2360. HTTPPath: "/",
  2361. }
  2362. if input == nil {
  2363. input = &InputService13TestShapeInputService13TestCaseOperation6Input{}
  2364. }
  2365. output = &InputService13TestShapeInputService13TestCaseOperation6Output{}
  2366. req = c.newRequest(op, input, output)
  2367. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2368. return
  2369. }
  2370. // InputService13TestCaseOperation6 API operation for .
  2371. //
  2372. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2373. // with awserr.Error's Code and Message methods to get detailed information about
  2374. // the error.
  2375. //
  2376. // See the AWS API reference guide for 's
  2377. // API operation InputService13TestCaseOperation6 for usage and error information.
  2378. func (c *InputService13ProtocolTest) InputService13TestCaseOperation6(input *InputService13TestShapeInputService13TestCaseOperation6Input) (*InputService13TestShapeInputService13TestCaseOperation6Output, error) {
  2379. req, out := c.InputService13TestCaseOperation6Request(input)
  2380. return out, req.Send()
  2381. }
  2382. // InputService13TestCaseOperation6WithContext is the same as InputService13TestCaseOperation6 with the addition of
  2383. // the ability to pass a context and additional request options.
  2384. //
  2385. // See InputService13TestCaseOperation6 for details on how to use this API operation.
  2386. //
  2387. // The context must be non-nil and will be used for request cancellation. If
  2388. // the context is nil a panic will occur. In the future the SDK may create
  2389. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2390. // for more information on using Contexts.
  2391. func (c *InputService13ProtocolTest) InputService13TestCaseOperation6WithContext(ctx aws.Context, input *InputService13TestShapeInputService13TestCaseOperation6Input, opts ...request.Option) (*InputService13TestShapeInputService13TestCaseOperation6Output, error) {
  2392. req, out := c.InputService13TestCaseOperation6Request(input)
  2393. req.SetContext(ctx)
  2394. req.ApplyOptions(opts...)
  2395. return out, req.Send()
  2396. }
  2397. type InputService13TestShapeInputService13TestCaseOperation1Input struct {
  2398. _ struct{} `type:"structure"`
  2399. RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
  2400. }
  2401. // SetRecursiveStruct sets the RecursiveStruct field's value.
  2402. func (s *InputService13TestShapeInputService13TestCaseOperation1Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation1Input {
  2403. s.RecursiveStruct = v
  2404. return s
  2405. }
  2406. type InputService13TestShapeInputService13TestCaseOperation1Output struct {
  2407. _ struct{} `type:"structure"`
  2408. }
  2409. type InputService13TestShapeInputService13TestCaseOperation2Input struct {
  2410. _ struct{} `type:"structure"`
  2411. RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
  2412. }
  2413. // SetRecursiveStruct sets the RecursiveStruct field's value.
  2414. func (s *InputService13TestShapeInputService13TestCaseOperation2Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation2Input {
  2415. s.RecursiveStruct = v
  2416. return s
  2417. }
  2418. type InputService13TestShapeInputService13TestCaseOperation2Output struct {
  2419. _ struct{} `type:"structure"`
  2420. }
  2421. type InputService13TestShapeInputService13TestCaseOperation3Input struct {
  2422. _ struct{} `type:"structure"`
  2423. RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
  2424. }
  2425. // SetRecursiveStruct sets the RecursiveStruct field's value.
  2426. func (s *InputService13TestShapeInputService13TestCaseOperation3Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation3Input {
  2427. s.RecursiveStruct = v
  2428. return s
  2429. }
  2430. type InputService13TestShapeInputService13TestCaseOperation3Output struct {
  2431. _ struct{} `type:"structure"`
  2432. }
  2433. type InputService13TestShapeInputService13TestCaseOperation4Input struct {
  2434. _ struct{} `type:"structure"`
  2435. RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
  2436. }
  2437. // SetRecursiveStruct sets the RecursiveStruct field's value.
  2438. func (s *InputService13TestShapeInputService13TestCaseOperation4Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation4Input {
  2439. s.RecursiveStruct = v
  2440. return s
  2441. }
  2442. type InputService13TestShapeInputService13TestCaseOperation4Output struct {
  2443. _ struct{} `type:"structure"`
  2444. }
  2445. type InputService13TestShapeInputService13TestCaseOperation5Input struct {
  2446. _ struct{} `type:"structure"`
  2447. RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
  2448. }
  2449. // SetRecursiveStruct sets the RecursiveStruct field's value.
  2450. func (s *InputService13TestShapeInputService13TestCaseOperation5Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation5Input {
  2451. s.RecursiveStruct = v
  2452. return s
  2453. }
  2454. type InputService13TestShapeInputService13TestCaseOperation5Output struct {
  2455. _ struct{} `type:"structure"`
  2456. }
  2457. type InputService13TestShapeInputService13TestCaseOperation6Input struct {
  2458. _ struct{} `type:"structure"`
  2459. RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
  2460. }
  2461. // SetRecursiveStruct sets the RecursiveStruct field's value.
  2462. func (s *InputService13TestShapeInputService13TestCaseOperation6Input) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeInputService13TestCaseOperation6Input {
  2463. s.RecursiveStruct = v
  2464. return s
  2465. }
  2466. type InputService13TestShapeInputService13TestCaseOperation6Output struct {
  2467. _ struct{} `type:"structure"`
  2468. }
  2469. type InputService13TestShapeRecursiveStructType struct {
  2470. _ struct{} `type:"structure"`
  2471. NoRecurse *string `type:"string"`
  2472. RecursiveList []*InputService13TestShapeRecursiveStructType `type:"list"`
  2473. RecursiveMap map[string]*InputService13TestShapeRecursiveStructType `type:"map"`
  2474. RecursiveStruct *InputService13TestShapeRecursiveStructType `type:"structure"`
  2475. }
  2476. // SetNoRecurse sets the NoRecurse field's value.
  2477. func (s *InputService13TestShapeRecursiveStructType) SetNoRecurse(v string) *InputService13TestShapeRecursiveStructType {
  2478. s.NoRecurse = &v
  2479. return s
  2480. }
  2481. // SetRecursiveList sets the RecursiveList field's value.
  2482. func (s *InputService13TestShapeRecursiveStructType) SetRecursiveList(v []*InputService13TestShapeRecursiveStructType) *InputService13TestShapeRecursiveStructType {
  2483. s.RecursiveList = v
  2484. return s
  2485. }
  2486. // SetRecursiveMap sets the RecursiveMap field's value.
  2487. func (s *InputService13TestShapeRecursiveStructType) SetRecursiveMap(v map[string]*InputService13TestShapeRecursiveStructType) *InputService13TestShapeRecursiveStructType {
  2488. s.RecursiveMap = v
  2489. return s
  2490. }
  2491. // SetRecursiveStruct sets the RecursiveStruct field's value.
  2492. func (s *InputService13TestShapeRecursiveStructType) SetRecursiveStruct(v *InputService13TestShapeRecursiveStructType) *InputService13TestShapeRecursiveStructType {
  2493. s.RecursiveStruct = v
  2494. return s
  2495. }
  2496. // InputService14ProtocolTest provides the API operation methods for making requests to
  2497. // . See this package's package overview docs
  2498. // for details on the service.
  2499. //
  2500. // InputService14ProtocolTest methods are safe to use concurrently. It is not safe to
  2501. // modify mutate any of the struct's properties though.
  2502. type InputService14ProtocolTest struct {
  2503. *client.Client
  2504. }
  2505. // New creates a new instance of the InputService14ProtocolTest client with a session.
  2506. // If additional configuration is needed for the client instance use the optional
  2507. // aws.Config parameter to add your extra config.
  2508. //
  2509. // Example:
  2510. // // Create a InputService14ProtocolTest client from just a session.
  2511. // svc := inputservice14protocoltest.New(mySession)
  2512. //
  2513. // // Create a InputService14ProtocolTest client with additional configuration
  2514. // svc := inputservice14protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  2515. func NewInputService14ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService14ProtocolTest {
  2516. c := p.ClientConfig("inputservice14protocoltest", cfgs...)
  2517. return newInputService14ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  2518. }
  2519. // newClient creates, initializes and returns a new service client instance.
  2520. func newInputService14ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService14ProtocolTest {
  2521. svc := &InputService14ProtocolTest{
  2522. Client: client.New(
  2523. cfg,
  2524. metadata.ClientInfo{
  2525. ServiceName: "InputService14ProtocolTest",
  2526. ServiceID: "InputService14ProtocolTest",
  2527. SigningName: signingName,
  2528. SigningRegion: signingRegion,
  2529. Endpoint: endpoint,
  2530. APIVersion: "2014-01-01",
  2531. },
  2532. handlers,
  2533. ),
  2534. }
  2535. // Handlers
  2536. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2537. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  2538. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  2539. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  2540. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  2541. return svc
  2542. }
  2543. // newRequest creates a new request for a InputService14ProtocolTest operation and runs any
  2544. // custom request initialization.
  2545. func (c *InputService14ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2546. req := c.NewRequest(op, params, data)
  2547. return req
  2548. }
  2549. const opInputService14TestCaseOperation1 = "OperationName"
  2550. // InputService14TestCaseOperation1Request generates a "aws/request.Request" representing the
  2551. // client's request for the InputService14TestCaseOperation1 operation. The "output" return
  2552. // value will be populated with the request's response once the request completes
  2553. // successfully.
  2554. //
  2555. // Use "Send" method on the returned Request to send the API call to the service.
  2556. // the "output" return value is not valid until after Send returns without error.
  2557. //
  2558. // See InputService14TestCaseOperation1 for more information on using the InputService14TestCaseOperation1
  2559. // API call, and error handling.
  2560. //
  2561. // This method is useful when you want to inject custom logic or configuration
  2562. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2563. //
  2564. //
  2565. // // Example sending a request using the InputService14TestCaseOperation1Request method.
  2566. // req, resp := client.InputService14TestCaseOperation1Request(params)
  2567. //
  2568. // err := req.Send()
  2569. // if err == nil { // resp is now filled
  2570. // fmt.Println(resp)
  2571. // }
  2572. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1Request(input *InputService14TestShapeInputService14TestCaseOperation1Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation1Output) {
  2573. op := &request.Operation{
  2574. Name: opInputService14TestCaseOperation1,
  2575. HTTPMethod: "POST",
  2576. HTTPPath: "/",
  2577. }
  2578. if input == nil {
  2579. input = &InputService14TestShapeInputService14TestCaseOperation1Input{}
  2580. }
  2581. output = &InputService14TestShapeInputService14TestCaseOperation1Output{}
  2582. req = c.newRequest(op, input, output)
  2583. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2584. return
  2585. }
  2586. // InputService14TestCaseOperation1 API operation for .
  2587. //
  2588. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2589. // with awserr.Error's Code and Message methods to get detailed information about
  2590. // the error.
  2591. //
  2592. // See the AWS API reference guide for 's
  2593. // API operation InputService14TestCaseOperation1 for usage and error information.
  2594. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1(input *InputService14TestShapeInputService14TestCaseOperation1Input) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
  2595. req, out := c.InputService14TestCaseOperation1Request(input)
  2596. return out, req.Send()
  2597. }
  2598. // InputService14TestCaseOperation1WithContext is the same as InputService14TestCaseOperation1 with the addition of
  2599. // the ability to pass a context and additional request options.
  2600. //
  2601. // See InputService14TestCaseOperation1 for details on how to use this API operation.
  2602. //
  2603. // The context must be non-nil and will be used for request cancellation. If
  2604. // the context is nil a panic will occur. In the future the SDK may create
  2605. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2606. // for more information on using Contexts.
  2607. func (c *InputService14ProtocolTest) InputService14TestCaseOperation1WithContext(ctx aws.Context, input *InputService14TestShapeInputService14TestCaseOperation1Input, opts ...request.Option) (*InputService14TestShapeInputService14TestCaseOperation1Output, error) {
  2608. req, out := c.InputService14TestCaseOperation1Request(input)
  2609. req.SetContext(ctx)
  2610. req.ApplyOptions(opts...)
  2611. return out, req.Send()
  2612. }
  2613. const opInputService14TestCaseOperation2 = "OperationName"
  2614. // InputService14TestCaseOperation2Request generates a "aws/request.Request" representing the
  2615. // client's request for the InputService14TestCaseOperation2 operation. The "output" return
  2616. // value will be populated with the request's response once the request completes
  2617. // successfully.
  2618. //
  2619. // Use "Send" method on the returned Request to send the API call to the service.
  2620. // the "output" return value is not valid until after Send returns without error.
  2621. //
  2622. // See InputService14TestCaseOperation2 for more information on using the InputService14TestCaseOperation2
  2623. // API call, and error handling.
  2624. //
  2625. // This method is useful when you want to inject custom logic or configuration
  2626. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2627. //
  2628. //
  2629. // // Example sending a request using the InputService14TestCaseOperation2Request method.
  2630. // req, resp := client.InputService14TestCaseOperation2Request(params)
  2631. //
  2632. // err := req.Send()
  2633. // if err == nil { // resp is now filled
  2634. // fmt.Println(resp)
  2635. // }
  2636. func (c *InputService14ProtocolTest) InputService14TestCaseOperation2Request(input *InputService14TestShapeInputService14TestCaseOperation2Input) (req *request.Request, output *InputService14TestShapeInputService14TestCaseOperation2Output) {
  2637. op := &request.Operation{
  2638. Name: opInputService14TestCaseOperation2,
  2639. HTTPMethod: "POST",
  2640. HTTPPath: "/",
  2641. }
  2642. if input == nil {
  2643. input = &InputService14TestShapeInputService14TestCaseOperation2Input{}
  2644. }
  2645. output = &InputService14TestShapeInputService14TestCaseOperation2Output{}
  2646. req = c.newRequest(op, input, output)
  2647. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2648. return
  2649. }
  2650. // InputService14TestCaseOperation2 API operation for .
  2651. //
  2652. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2653. // with awserr.Error's Code and Message methods to get detailed information about
  2654. // the error.
  2655. //
  2656. // See the AWS API reference guide for 's
  2657. // API operation InputService14TestCaseOperation2 for usage and error information.
  2658. func (c *InputService14ProtocolTest) InputService14TestCaseOperation2(input *InputService14TestShapeInputService14TestCaseOperation2Input) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) {
  2659. req, out := c.InputService14TestCaseOperation2Request(input)
  2660. return out, req.Send()
  2661. }
  2662. // InputService14TestCaseOperation2WithContext is the same as InputService14TestCaseOperation2 with the addition of
  2663. // the ability to pass a context and additional request options.
  2664. //
  2665. // See InputService14TestCaseOperation2 for details on how to use this API operation.
  2666. //
  2667. // The context must be non-nil and will be used for request cancellation. If
  2668. // the context is nil a panic will occur. In the future the SDK may create
  2669. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2670. // for more information on using Contexts.
  2671. func (c *InputService14ProtocolTest) InputService14TestCaseOperation2WithContext(ctx aws.Context, input *InputService14TestShapeInputService14TestCaseOperation2Input, opts ...request.Option) (*InputService14TestShapeInputService14TestCaseOperation2Output, error) {
  2672. req, out := c.InputService14TestCaseOperation2Request(input)
  2673. req.SetContext(ctx)
  2674. req.ApplyOptions(opts...)
  2675. return out, req.Send()
  2676. }
  2677. type InputService14TestShapeInputService14TestCaseOperation1Input struct {
  2678. _ struct{} `type:"structure"`
  2679. Token *string `type:"string" idempotencyToken:"true"`
  2680. }
  2681. // SetToken sets the Token field's value.
  2682. func (s *InputService14TestShapeInputService14TestCaseOperation1Input) SetToken(v string) *InputService14TestShapeInputService14TestCaseOperation1Input {
  2683. s.Token = &v
  2684. return s
  2685. }
  2686. type InputService14TestShapeInputService14TestCaseOperation1Output struct {
  2687. _ struct{} `type:"structure"`
  2688. }
  2689. type InputService14TestShapeInputService14TestCaseOperation2Input struct {
  2690. _ struct{} `type:"structure"`
  2691. Token *string `type:"string" idempotencyToken:"true"`
  2692. }
  2693. // SetToken sets the Token field's value.
  2694. func (s *InputService14TestShapeInputService14TestCaseOperation2Input) SetToken(v string) *InputService14TestShapeInputService14TestCaseOperation2Input {
  2695. s.Token = &v
  2696. return s
  2697. }
  2698. type InputService14TestShapeInputService14TestCaseOperation2Output struct {
  2699. _ struct{} `type:"structure"`
  2700. }
  2701. // InputService15ProtocolTest provides the API operation methods for making requests to
  2702. // . See this package's package overview docs
  2703. // for details on the service.
  2704. //
  2705. // InputService15ProtocolTest methods are safe to use concurrently. It is not safe to
  2706. // modify mutate any of the struct's properties though.
  2707. type InputService15ProtocolTest struct {
  2708. *client.Client
  2709. }
  2710. // New creates a new instance of the InputService15ProtocolTest client with a session.
  2711. // If additional configuration is needed for the client instance use the optional
  2712. // aws.Config parameter to add your extra config.
  2713. //
  2714. // Example:
  2715. // // Create a InputService15ProtocolTest client from just a session.
  2716. // svc := inputservice15protocoltest.New(mySession)
  2717. //
  2718. // // Create a InputService15ProtocolTest client with additional configuration
  2719. // svc := inputservice15protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  2720. func NewInputService15ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService15ProtocolTest {
  2721. c := p.ClientConfig("inputservice15protocoltest", cfgs...)
  2722. return newInputService15ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  2723. }
  2724. // newClient creates, initializes and returns a new service client instance.
  2725. func newInputService15ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService15ProtocolTest {
  2726. svc := &InputService15ProtocolTest{
  2727. Client: client.New(
  2728. cfg,
  2729. metadata.ClientInfo{
  2730. ServiceName: "InputService15ProtocolTest",
  2731. ServiceID: "InputService15ProtocolTest",
  2732. SigningName: signingName,
  2733. SigningRegion: signingRegion,
  2734. Endpoint: endpoint,
  2735. APIVersion: "2014-01-01",
  2736. },
  2737. handlers,
  2738. ),
  2739. }
  2740. // Handlers
  2741. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  2742. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  2743. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  2744. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  2745. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  2746. return svc
  2747. }
  2748. // newRequest creates a new request for a InputService15ProtocolTest operation and runs any
  2749. // custom request initialization.
  2750. func (c *InputService15ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  2751. req := c.NewRequest(op, params, data)
  2752. return req
  2753. }
  2754. const opInputService15TestCaseOperation1 = "OperationName"
  2755. // InputService15TestCaseOperation1Request generates a "aws/request.Request" representing the
  2756. // client's request for the InputService15TestCaseOperation1 operation. The "output" return
  2757. // value will be populated with the request's response once the request completes
  2758. // successfully.
  2759. //
  2760. // Use "Send" method on the returned Request to send the API call to the service.
  2761. // the "output" return value is not valid until after Send returns without error.
  2762. //
  2763. // See InputService15TestCaseOperation1 for more information on using the InputService15TestCaseOperation1
  2764. // API call, and error handling.
  2765. //
  2766. // This method is useful when you want to inject custom logic or configuration
  2767. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2768. //
  2769. //
  2770. // // Example sending a request using the InputService15TestCaseOperation1Request method.
  2771. // req, resp := client.InputService15TestCaseOperation1Request(params)
  2772. //
  2773. // err := req.Send()
  2774. // if err == nil { // resp is now filled
  2775. // fmt.Println(resp)
  2776. // }
  2777. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1Request(input *InputService15TestShapeInputService15TestCaseOperation1Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation1Output) {
  2778. op := &request.Operation{
  2779. Name: opInputService15TestCaseOperation1,
  2780. HTTPMethod: "POST",
  2781. HTTPPath: "/",
  2782. }
  2783. if input == nil {
  2784. input = &InputService15TestShapeInputService15TestCaseOperation1Input{}
  2785. }
  2786. output = &InputService15TestShapeInputService15TestCaseOperation1Output{}
  2787. req = c.newRequest(op, input, output)
  2788. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2789. return
  2790. }
  2791. // InputService15TestCaseOperation1 API operation for .
  2792. //
  2793. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2794. // with awserr.Error's Code and Message methods to get detailed information about
  2795. // the error.
  2796. //
  2797. // See the AWS API reference guide for 's
  2798. // API operation InputService15TestCaseOperation1 for usage and error information.
  2799. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1(input *InputService15TestShapeInputService15TestCaseOperation1Input) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
  2800. req, out := c.InputService15TestCaseOperation1Request(input)
  2801. return out, req.Send()
  2802. }
  2803. // InputService15TestCaseOperation1WithContext is the same as InputService15TestCaseOperation1 with the addition of
  2804. // the ability to pass a context and additional request options.
  2805. //
  2806. // See InputService15TestCaseOperation1 for details on how to use this API operation.
  2807. //
  2808. // The context must be non-nil and will be used for request cancellation. If
  2809. // the context is nil a panic will occur. In the future the SDK may create
  2810. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2811. // for more information on using Contexts.
  2812. func (c *InputService15ProtocolTest) InputService15TestCaseOperation1WithContext(ctx aws.Context, input *InputService15TestShapeInputService15TestCaseOperation1Input, opts ...request.Option) (*InputService15TestShapeInputService15TestCaseOperation1Output, error) {
  2813. req, out := c.InputService15TestCaseOperation1Request(input)
  2814. req.SetContext(ctx)
  2815. req.ApplyOptions(opts...)
  2816. return out, req.Send()
  2817. }
  2818. const opInputService15TestCaseOperation2 = "OperationName"
  2819. // InputService15TestCaseOperation2Request generates a "aws/request.Request" representing the
  2820. // client's request for the InputService15TestCaseOperation2 operation. The "output" return
  2821. // value will be populated with the request's response once the request completes
  2822. // successfully.
  2823. //
  2824. // Use "Send" method on the returned Request to send the API call to the service.
  2825. // the "output" return value is not valid until after Send returns without error.
  2826. //
  2827. // See InputService15TestCaseOperation2 for more information on using the InputService15TestCaseOperation2
  2828. // API call, and error handling.
  2829. //
  2830. // This method is useful when you want to inject custom logic or configuration
  2831. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2832. //
  2833. //
  2834. // // Example sending a request using the InputService15TestCaseOperation2Request method.
  2835. // req, resp := client.InputService15TestCaseOperation2Request(params)
  2836. //
  2837. // err := req.Send()
  2838. // if err == nil { // resp is now filled
  2839. // fmt.Println(resp)
  2840. // }
  2841. func (c *InputService15ProtocolTest) InputService15TestCaseOperation2Request(input *InputService15TestShapeInputService15TestCaseOperation2Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation2Output) {
  2842. op := &request.Operation{
  2843. Name: opInputService15TestCaseOperation2,
  2844. HTTPMethod: "POST",
  2845. HTTPPath: "/",
  2846. }
  2847. if input == nil {
  2848. input = &InputService15TestShapeInputService15TestCaseOperation2Input{}
  2849. }
  2850. output = &InputService15TestShapeInputService15TestCaseOperation2Output{}
  2851. req = c.newRequest(op, input, output)
  2852. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2853. return
  2854. }
  2855. // InputService15TestCaseOperation2 API operation for .
  2856. //
  2857. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2858. // with awserr.Error's Code and Message methods to get detailed information about
  2859. // the error.
  2860. //
  2861. // See the AWS API reference guide for 's
  2862. // API operation InputService15TestCaseOperation2 for usage and error information.
  2863. func (c *InputService15ProtocolTest) InputService15TestCaseOperation2(input *InputService15TestShapeInputService15TestCaseOperation2Input) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) {
  2864. req, out := c.InputService15TestCaseOperation2Request(input)
  2865. return out, req.Send()
  2866. }
  2867. // InputService15TestCaseOperation2WithContext is the same as InputService15TestCaseOperation2 with the addition of
  2868. // the ability to pass a context and additional request options.
  2869. //
  2870. // See InputService15TestCaseOperation2 for details on how to use this API operation.
  2871. //
  2872. // The context must be non-nil and will be used for request cancellation. If
  2873. // the context is nil a panic will occur. In the future the SDK may create
  2874. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2875. // for more information on using Contexts.
  2876. func (c *InputService15ProtocolTest) InputService15TestCaseOperation2WithContext(ctx aws.Context, input *InputService15TestShapeInputService15TestCaseOperation2Input, opts ...request.Option) (*InputService15TestShapeInputService15TestCaseOperation2Output, error) {
  2877. req, out := c.InputService15TestCaseOperation2Request(input)
  2878. req.SetContext(ctx)
  2879. req.ApplyOptions(opts...)
  2880. return out, req.Send()
  2881. }
  2882. const opInputService15TestCaseOperation3 = "OperationName"
  2883. // InputService15TestCaseOperation3Request generates a "aws/request.Request" representing the
  2884. // client's request for the InputService15TestCaseOperation3 operation. The "output" return
  2885. // value will be populated with the request's response once the request completes
  2886. // successfully.
  2887. //
  2888. // Use "Send" method on the returned Request to send the API call to the service.
  2889. // the "output" return value is not valid until after Send returns without error.
  2890. //
  2891. // See InputService15TestCaseOperation3 for more information on using the InputService15TestCaseOperation3
  2892. // API call, and error handling.
  2893. //
  2894. // This method is useful when you want to inject custom logic or configuration
  2895. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  2896. //
  2897. //
  2898. // // Example sending a request using the InputService15TestCaseOperation3Request method.
  2899. // req, resp := client.InputService15TestCaseOperation3Request(params)
  2900. //
  2901. // err := req.Send()
  2902. // if err == nil { // resp is now filled
  2903. // fmt.Println(resp)
  2904. // }
  2905. func (c *InputService15ProtocolTest) InputService15TestCaseOperation3Request(input *InputService15TestShapeInputService15TestCaseOperation3Input) (req *request.Request, output *InputService15TestShapeInputService15TestCaseOperation3Output) {
  2906. op := &request.Operation{
  2907. Name: opInputService15TestCaseOperation3,
  2908. HTTPMethod: "POST",
  2909. HTTPPath: "/",
  2910. }
  2911. if input == nil {
  2912. input = &InputService15TestShapeInputService15TestCaseOperation3Input{}
  2913. }
  2914. output = &InputService15TestShapeInputService15TestCaseOperation3Output{}
  2915. req = c.newRequest(op, input, output)
  2916. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  2917. return
  2918. }
  2919. // InputService15TestCaseOperation3 API operation for .
  2920. //
  2921. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  2922. // with awserr.Error's Code and Message methods to get detailed information about
  2923. // the error.
  2924. //
  2925. // See the AWS API reference guide for 's
  2926. // API operation InputService15TestCaseOperation3 for usage and error information.
  2927. func (c *InputService15ProtocolTest) InputService15TestCaseOperation3(input *InputService15TestShapeInputService15TestCaseOperation3Input) (*InputService15TestShapeInputService15TestCaseOperation3Output, error) {
  2928. req, out := c.InputService15TestCaseOperation3Request(input)
  2929. return out, req.Send()
  2930. }
  2931. // InputService15TestCaseOperation3WithContext is the same as InputService15TestCaseOperation3 with the addition of
  2932. // the ability to pass a context and additional request options.
  2933. //
  2934. // See InputService15TestCaseOperation3 for details on how to use this API operation.
  2935. //
  2936. // The context must be non-nil and will be used for request cancellation. If
  2937. // the context is nil a panic will occur. In the future the SDK may create
  2938. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  2939. // for more information on using Contexts.
  2940. func (c *InputService15ProtocolTest) InputService15TestCaseOperation3WithContext(ctx aws.Context, input *InputService15TestShapeInputService15TestCaseOperation3Input, opts ...request.Option) (*InputService15TestShapeInputService15TestCaseOperation3Output, error) {
  2941. req, out := c.InputService15TestCaseOperation3Request(input)
  2942. req.SetContext(ctx)
  2943. req.ApplyOptions(opts...)
  2944. return out, req.Send()
  2945. }
  2946. type InputService15TestShapeInputService15TestCaseOperation1Input struct {
  2947. _ struct{} `type:"structure"`
  2948. FooEnum *string `type:"string" enum:"InputService15TestShapeEnumType"`
  2949. ListEnums []*string `type:"list"`
  2950. }
  2951. // SetFooEnum sets the FooEnum field's value.
  2952. func (s *InputService15TestShapeInputService15TestCaseOperation1Input) SetFooEnum(v string) *InputService15TestShapeInputService15TestCaseOperation1Input {
  2953. s.FooEnum = &v
  2954. return s
  2955. }
  2956. // SetListEnums sets the ListEnums field's value.
  2957. func (s *InputService15TestShapeInputService15TestCaseOperation1Input) SetListEnums(v []*string) *InputService15TestShapeInputService15TestCaseOperation1Input {
  2958. s.ListEnums = v
  2959. return s
  2960. }
  2961. type InputService15TestShapeInputService15TestCaseOperation1Output struct {
  2962. _ struct{} `type:"structure"`
  2963. }
  2964. type InputService15TestShapeInputService15TestCaseOperation2Input struct {
  2965. _ struct{} `type:"structure"`
  2966. FooEnum *string `type:"string" enum:"InputService15TestShapeEnumType"`
  2967. ListEnums []*string `type:"list"`
  2968. }
  2969. // SetFooEnum sets the FooEnum field's value.
  2970. func (s *InputService15TestShapeInputService15TestCaseOperation2Input) SetFooEnum(v string) *InputService15TestShapeInputService15TestCaseOperation2Input {
  2971. s.FooEnum = &v
  2972. return s
  2973. }
  2974. // SetListEnums sets the ListEnums field's value.
  2975. func (s *InputService15TestShapeInputService15TestCaseOperation2Input) SetListEnums(v []*string) *InputService15TestShapeInputService15TestCaseOperation2Input {
  2976. s.ListEnums = v
  2977. return s
  2978. }
  2979. type InputService15TestShapeInputService15TestCaseOperation2Output struct {
  2980. _ struct{} `type:"structure"`
  2981. }
  2982. type InputService15TestShapeInputService15TestCaseOperation3Input struct {
  2983. _ struct{} `type:"structure"`
  2984. FooEnum *string `type:"string" enum:"InputService15TestShapeEnumType"`
  2985. ListEnums []*string `type:"list"`
  2986. }
  2987. // SetFooEnum sets the FooEnum field's value.
  2988. func (s *InputService15TestShapeInputService15TestCaseOperation3Input) SetFooEnum(v string) *InputService15TestShapeInputService15TestCaseOperation3Input {
  2989. s.FooEnum = &v
  2990. return s
  2991. }
  2992. // SetListEnums sets the ListEnums field's value.
  2993. func (s *InputService15TestShapeInputService15TestCaseOperation3Input) SetListEnums(v []*string) *InputService15TestShapeInputService15TestCaseOperation3Input {
  2994. s.ListEnums = v
  2995. return s
  2996. }
  2997. type InputService15TestShapeInputService15TestCaseOperation3Output struct {
  2998. _ struct{} `type:"structure"`
  2999. }
  3000. const (
  3001. // EnumTypeFoo is a InputService15TestShapeEnumType enum value
  3002. EnumTypeFoo = "foo"
  3003. // EnumTypeBar is a InputService15TestShapeEnumType enum value
  3004. EnumTypeBar = "bar"
  3005. )
  3006. // InputService16ProtocolTest provides the API operation methods for making requests to
  3007. // . See this package's package overview docs
  3008. // for details on the service.
  3009. //
  3010. // InputService16ProtocolTest methods are safe to use concurrently. It is not safe to
  3011. // modify mutate any of the struct's properties though.
  3012. type InputService16ProtocolTest struct {
  3013. *client.Client
  3014. }
  3015. // New creates a new instance of the InputService16ProtocolTest client with a session.
  3016. // If additional configuration is needed for the client instance use the optional
  3017. // aws.Config parameter to add your extra config.
  3018. //
  3019. // Example:
  3020. // // Create a InputService16ProtocolTest client from just a session.
  3021. // svc := inputservice16protocoltest.New(mySession)
  3022. //
  3023. // // Create a InputService16ProtocolTest client with additional configuration
  3024. // svc := inputservice16protocoltest.New(mySession, aws.NewConfig().WithRegion("us-west-2"))
  3025. func NewInputService16ProtocolTest(p client.ConfigProvider, cfgs ...*aws.Config) *InputService16ProtocolTest {
  3026. c := p.ClientConfig("inputservice16protocoltest", cfgs...)
  3027. return newInputService16ProtocolTestClient(*c.Config, c.Handlers, c.Endpoint, c.SigningRegion, c.SigningName)
  3028. }
  3029. // newClient creates, initializes and returns a new service client instance.
  3030. func newInputService16ProtocolTestClient(cfg aws.Config, handlers request.Handlers, endpoint, signingRegion, signingName string) *InputService16ProtocolTest {
  3031. svc := &InputService16ProtocolTest{
  3032. Client: client.New(
  3033. cfg,
  3034. metadata.ClientInfo{
  3035. ServiceName: "InputService16ProtocolTest",
  3036. ServiceID: "InputService16ProtocolTest",
  3037. SigningName: signingName,
  3038. SigningRegion: signingRegion,
  3039. Endpoint: endpoint,
  3040. APIVersion: "2014-01-01",
  3041. },
  3042. handlers,
  3043. ),
  3044. }
  3045. // Handlers
  3046. svc.Handlers.Sign.PushBackNamed(v4.SignRequestHandler)
  3047. svc.Handlers.Build.PushBackNamed(query.BuildHandler)
  3048. svc.Handlers.Unmarshal.PushBackNamed(query.UnmarshalHandler)
  3049. svc.Handlers.UnmarshalMeta.PushBackNamed(query.UnmarshalMetaHandler)
  3050. svc.Handlers.UnmarshalError.PushBackNamed(query.UnmarshalErrorHandler)
  3051. return svc
  3052. }
  3053. // newRequest creates a new request for a InputService16ProtocolTest operation and runs any
  3054. // custom request initialization.
  3055. func (c *InputService16ProtocolTest) newRequest(op *request.Operation, params, data interface{}) *request.Request {
  3056. req := c.NewRequest(op, params, data)
  3057. return req
  3058. }
  3059. const opInputService16TestCaseOperation1 = "StaticOp"
  3060. // InputService16TestCaseOperation1Request generates a "aws/request.Request" representing the
  3061. // client's request for the InputService16TestCaseOperation1 operation. The "output" return
  3062. // value will be populated with the request's response once the request completes
  3063. // successfully.
  3064. //
  3065. // Use "Send" method on the returned Request to send the API call to the service.
  3066. // the "output" return value is not valid until after Send returns without error.
  3067. //
  3068. // See InputService16TestCaseOperation1 for more information on using the InputService16TestCaseOperation1
  3069. // API call, and error handling.
  3070. //
  3071. // This method is useful when you want to inject custom logic or configuration
  3072. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3073. //
  3074. //
  3075. // // Example sending a request using the InputService16TestCaseOperation1Request method.
  3076. // req, resp := client.InputService16TestCaseOperation1Request(params)
  3077. //
  3078. // err := req.Send()
  3079. // if err == nil { // resp is now filled
  3080. // fmt.Println(resp)
  3081. // }
  3082. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1Request(input *InputService16TestShapeInputService16TestCaseOperation1Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation1Output) {
  3083. op := &request.Operation{
  3084. Name: opInputService16TestCaseOperation1,
  3085. HTTPMethod: "POST",
  3086. HTTPPath: "/",
  3087. }
  3088. if input == nil {
  3089. input = &InputService16TestShapeInputService16TestCaseOperation1Input{}
  3090. }
  3091. output = &InputService16TestShapeInputService16TestCaseOperation1Output{}
  3092. req = c.newRequest(op, input, output)
  3093. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3094. req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("data-", nil))
  3095. req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
  3096. return
  3097. }
  3098. // InputService16TestCaseOperation1 API operation for .
  3099. //
  3100. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3101. // with awserr.Error's Code and Message methods to get detailed information about
  3102. // the error.
  3103. //
  3104. // See the AWS API reference guide for 's
  3105. // API operation InputService16TestCaseOperation1 for usage and error information.
  3106. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1(input *InputService16TestShapeInputService16TestCaseOperation1Input) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
  3107. req, out := c.InputService16TestCaseOperation1Request(input)
  3108. return out, req.Send()
  3109. }
  3110. // InputService16TestCaseOperation1WithContext is the same as InputService16TestCaseOperation1 with the addition of
  3111. // the ability to pass a context and additional request options.
  3112. //
  3113. // See InputService16TestCaseOperation1 for details on how to use this API operation.
  3114. //
  3115. // The context must be non-nil and will be used for request cancellation. If
  3116. // the context is nil a panic will occur. In the future the SDK may create
  3117. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3118. // for more information on using Contexts.
  3119. func (c *InputService16ProtocolTest) InputService16TestCaseOperation1WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation1Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation1Output, error) {
  3120. req, out := c.InputService16TestCaseOperation1Request(input)
  3121. req.SetContext(ctx)
  3122. req.ApplyOptions(opts...)
  3123. return out, req.Send()
  3124. }
  3125. const opInputService16TestCaseOperation2 = "MemberRefOp"
  3126. // InputService16TestCaseOperation2Request generates a "aws/request.Request" representing the
  3127. // client's request for the InputService16TestCaseOperation2 operation. The "output" return
  3128. // value will be populated with the request's response once the request completes
  3129. // successfully.
  3130. //
  3131. // Use "Send" method on the returned Request to send the API call to the service.
  3132. // the "output" return value is not valid until after Send returns without error.
  3133. //
  3134. // See InputService16TestCaseOperation2 for more information on using the InputService16TestCaseOperation2
  3135. // API call, and error handling.
  3136. //
  3137. // This method is useful when you want to inject custom logic or configuration
  3138. // into the SDK's request lifecycle. Such as custom headers, or retry logic.
  3139. //
  3140. //
  3141. // // Example sending a request using the InputService16TestCaseOperation2Request method.
  3142. // req, resp := client.InputService16TestCaseOperation2Request(params)
  3143. //
  3144. // err := req.Send()
  3145. // if err == nil { // resp is now filled
  3146. // fmt.Println(resp)
  3147. // }
  3148. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2Request(input *InputService16TestShapeInputService16TestCaseOperation2Input) (req *request.Request, output *InputService16TestShapeInputService16TestCaseOperation2Output) {
  3149. op := &request.Operation{
  3150. Name: opInputService16TestCaseOperation2,
  3151. HTTPMethod: "POST",
  3152. HTTPPath: "/",
  3153. }
  3154. if input == nil {
  3155. input = &InputService16TestShapeInputService16TestCaseOperation2Input{}
  3156. }
  3157. output = &InputService16TestShapeInputService16TestCaseOperation2Output{}
  3158. req = c.newRequest(op, input, output)
  3159. req.Handlers.Unmarshal.Swap(query.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
  3160. req.Handlers.Build.PushBackNamed(protocol.NewHostPrefixHandler("foo-{Name}.", input.hostLabels))
  3161. req.Handlers.Build.PushBackNamed(protocol.ValidateEndpointHostHandler)
  3162. return
  3163. }
  3164. // InputService16TestCaseOperation2 API operation for .
  3165. //
  3166. // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
  3167. // with awserr.Error's Code and Message methods to get detailed information about
  3168. // the error.
  3169. //
  3170. // See the AWS API reference guide for 's
  3171. // API operation InputService16TestCaseOperation2 for usage and error information.
  3172. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2(input *InputService16TestShapeInputService16TestCaseOperation2Input) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
  3173. req, out := c.InputService16TestCaseOperation2Request(input)
  3174. return out, req.Send()
  3175. }
  3176. // InputService16TestCaseOperation2WithContext is the same as InputService16TestCaseOperation2 with the addition of
  3177. // the ability to pass a context and additional request options.
  3178. //
  3179. // See InputService16TestCaseOperation2 for details on how to use this API operation.
  3180. //
  3181. // The context must be non-nil and will be used for request cancellation. If
  3182. // the context is nil a panic will occur. In the future the SDK may create
  3183. // sub-contexts for http.Requests. See https://golang.org/pkg/context/
  3184. // for more information on using Contexts.
  3185. func (c *InputService16ProtocolTest) InputService16TestCaseOperation2WithContext(ctx aws.Context, input *InputService16TestShapeInputService16TestCaseOperation2Input, opts ...request.Option) (*InputService16TestShapeInputService16TestCaseOperation2Output, error) {
  3186. req, out := c.InputService16TestCaseOperation2Request(input)
  3187. req.SetContext(ctx)
  3188. req.ApplyOptions(opts...)
  3189. return out, req.Send()
  3190. }
  3191. type InputService16TestShapeInputService16TestCaseOperation1Input struct {
  3192. _ struct{} `type:"structure"`
  3193. Name *string `type:"string"`
  3194. }
  3195. // SetName sets the Name field's value.
  3196. func (s *InputService16TestShapeInputService16TestCaseOperation1Input) SetName(v string) *InputService16TestShapeInputService16TestCaseOperation1Input {
  3197. s.Name = &v
  3198. return s
  3199. }
  3200. type InputService16TestShapeInputService16TestCaseOperation1Output struct {
  3201. _ struct{} `type:"structure"`
  3202. }
  3203. type InputService16TestShapeInputService16TestCaseOperation2Input struct {
  3204. _ struct{} `type:"structure"`
  3205. // Name is a required field
  3206. Name *string `type:"string" required:"true"`
  3207. }
  3208. // Validate inspects the fields of the type to determine if they are valid.
  3209. func (s *InputService16TestShapeInputService16TestCaseOperation2Input) Validate() error {
  3210. invalidParams := request.ErrInvalidParams{Context: "InputService16TestShapeInputService16TestCaseOperation2Input"}
  3211. if s.Name == nil {
  3212. invalidParams.Add(request.NewErrParamRequired("Name"))
  3213. }
  3214. if s.Name != nil && len(*s.Name) < 1 {
  3215. invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  3216. }
  3217. if invalidParams.Len() > 0 {
  3218. return invalidParams
  3219. }
  3220. return nil
  3221. }
  3222. // SetName sets the Name field's value.
  3223. func (s *InputService16TestShapeInputService16TestCaseOperation2Input) SetName(v string) *InputService16TestShapeInputService16TestCaseOperation2Input {
  3224. s.Name = &v
  3225. return s
  3226. }
  3227. func (s *InputService16TestShapeInputService16TestCaseOperation2Input) hostLabels() map[string]string {
  3228. return map[string]string{
  3229. "Name": aws.StringValue(s.Name),
  3230. }
  3231. }
  3232. type InputService16TestShapeInputService16TestCaseOperation2Output struct {
  3233. _ struct{} `type:"structure"`
  3234. }
  3235. //
  3236. // Tests begin here
  3237. //
  3238. func TestInputService1ProtocolTestScalarMembersCase1(t *testing.T) {
  3239. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3240. input := &InputService1TestShapeInputService1TestCaseOperation1Input{
  3241. Bar: aws.String("val2"),
  3242. Foo: aws.String("val1"),
  3243. }
  3244. req, _ := svc.InputService1TestCaseOperation1Request(input)
  3245. r := req.HTTPRequest
  3246. // build request
  3247. req.Build()
  3248. if req.Error != nil {
  3249. t.Errorf("expect no error, got %v", req.Error)
  3250. }
  3251. // assert body
  3252. if r.Body == nil {
  3253. t.Errorf("expect body not to be nil")
  3254. }
  3255. body, _ := ioutil.ReadAll(r.Body)
  3256. awstesting.AssertQuery(t, `Action=OperationName&Bar=val2&Foo=val1&Version=2014-01-01`, util.Trim(string(body)))
  3257. // assert URL
  3258. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3259. // assert headers
  3260. }
  3261. func TestInputService1ProtocolTestScalarMembersCase2(t *testing.T) {
  3262. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3263. input := &InputService1TestShapeInputService1TestCaseOperation2Input{
  3264. Baz: aws.Bool(true),
  3265. }
  3266. req, _ := svc.InputService1TestCaseOperation2Request(input)
  3267. r := req.HTTPRequest
  3268. // build request
  3269. req.Build()
  3270. if req.Error != nil {
  3271. t.Errorf("expect no error, got %v", req.Error)
  3272. }
  3273. // assert body
  3274. if r.Body == nil {
  3275. t.Errorf("expect body not to be nil")
  3276. }
  3277. body, _ := ioutil.ReadAll(r.Body)
  3278. awstesting.AssertQuery(t, `Action=OperationName&Baz=true&Version=2014-01-01`, util.Trim(string(body)))
  3279. // assert URL
  3280. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3281. // assert headers
  3282. }
  3283. func TestInputService1ProtocolTestScalarMembersCase3(t *testing.T) {
  3284. svc := NewInputService1ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3285. input := &InputService1TestShapeInputService1TestCaseOperation3Input{
  3286. Baz: aws.Bool(false),
  3287. }
  3288. req, _ := svc.InputService1TestCaseOperation3Request(input)
  3289. r := req.HTTPRequest
  3290. // build request
  3291. req.Build()
  3292. if req.Error != nil {
  3293. t.Errorf("expect no error, got %v", req.Error)
  3294. }
  3295. // assert body
  3296. if r.Body == nil {
  3297. t.Errorf("expect body not to be nil")
  3298. }
  3299. body, _ := ioutil.ReadAll(r.Body)
  3300. awstesting.AssertQuery(t, `Action=OperationName&Baz=false&Version=2014-01-01`, util.Trim(string(body)))
  3301. // assert URL
  3302. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3303. // assert headers
  3304. }
  3305. func TestInputService2ProtocolTestNestedStructureMembersCase1(t *testing.T) {
  3306. svc := NewInputService2ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3307. input := &InputService2TestShapeInputService2TestCaseOperation1Input{
  3308. StructArg: &InputService2TestShapeStructType{
  3309. ScalarArg: aws.String("foo"),
  3310. },
  3311. }
  3312. req, _ := svc.InputService2TestCaseOperation1Request(input)
  3313. r := req.HTTPRequest
  3314. // build request
  3315. req.Build()
  3316. if req.Error != nil {
  3317. t.Errorf("expect no error, got %v", req.Error)
  3318. }
  3319. // assert body
  3320. if r.Body == nil {
  3321. t.Errorf("expect body not to be nil")
  3322. }
  3323. body, _ := ioutil.ReadAll(r.Body)
  3324. awstesting.AssertQuery(t, `Action=OperationName&StructArg.ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
  3325. // assert URL
  3326. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3327. // assert headers
  3328. }
  3329. func TestInputService3ProtocolTestListTypesCase1(t *testing.T) {
  3330. svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3331. input := &InputService3TestShapeInputService3TestCaseOperation1Input{
  3332. ListArg: []*string{
  3333. aws.String("foo"),
  3334. aws.String("bar"),
  3335. aws.String("baz"),
  3336. },
  3337. }
  3338. req, _ := svc.InputService3TestCaseOperation1Request(input)
  3339. r := req.HTTPRequest
  3340. // build request
  3341. req.Build()
  3342. if req.Error != nil {
  3343. t.Errorf("expect no error, got %v", req.Error)
  3344. }
  3345. // assert body
  3346. if r.Body == nil {
  3347. t.Errorf("expect body not to be nil")
  3348. }
  3349. body, _ := ioutil.ReadAll(r.Body)
  3350. awstesting.AssertQuery(t, `Action=OperationName&ListArg.member.1=foo&ListArg.member.2=bar&ListArg.member.3=baz&Version=2014-01-01`, util.Trim(string(body)))
  3351. // assert URL
  3352. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3353. // assert headers
  3354. }
  3355. func TestInputService3ProtocolTestListTypesCase2(t *testing.T) {
  3356. svc := NewInputService3ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3357. input := &InputService3TestShapeInputService3TestCaseOperation2Input{
  3358. ListArg: []*string{},
  3359. }
  3360. req, _ := svc.InputService3TestCaseOperation2Request(input)
  3361. r := req.HTTPRequest
  3362. // build request
  3363. req.Build()
  3364. if req.Error != nil {
  3365. t.Errorf("expect no error, got %v", req.Error)
  3366. }
  3367. // assert body
  3368. if r.Body == nil {
  3369. t.Errorf("expect body not to be nil")
  3370. }
  3371. body, _ := ioutil.ReadAll(r.Body)
  3372. awstesting.AssertQuery(t, `Action=OperationName&ListArg=&Version=2014-01-01`, util.Trim(string(body)))
  3373. // assert URL
  3374. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3375. // assert headers
  3376. }
  3377. func TestInputService4ProtocolTestFlattenedListCase1(t *testing.T) {
  3378. svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3379. input := &InputService4TestShapeInputService4TestCaseOperation1Input{
  3380. ListArg: []*string{
  3381. aws.String("a"),
  3382. aws.String("b"),
  3383. aws.String("c"),
  3384. },
  3385. ScalarArg: aws.String("foo"),
  3386. }
  3387. req, _ := svc.InputService4TestCaseOperation1Request(input)
  3388. r := req.HTTPRequest
  3389. // build request
  3390. req.Build()
  3391. if req.Error != nil {
  3392. t.Errorf("expect no error, got %v", req.Error)
  3393. }
  3394. // assert body
  3395. if r.Body == nil {
  3396. t.Errorf("expect body not to be nil")
  3397. }
  3398. body, _ := ioutil.ReadAll(r.Body)
  3399. awstesting.AssertQuery(t, `Action=OperationName&ListArg.1=a&ListArg.2=b&ListArg.3=c&ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
  3400. // assert URL
  3401. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3402. // assert headers
  3403. }
  3404. func TestInputService4ProtocolTestFlattenedListCase2(t *testing.T) {
  3405. svc := NewInputService4ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3406. input := &InputService4TestShapeInputService4TestCaseOperation2Input{
  3407. NamedListArg: []*string{
  3408. aws.String("a"),
  3409. },
  3410. }
  3411. req, _ := svc.InputService4TestCaseOperation2Request(input)
  3412. r := req.HTTPRequest
  3413. // build request
  3414. req.Build()
  3415. if req.Error != nil {
  3416. t.Errorf("expect no error, got %v", req.Error)
  3417. }
  3418. // assert body
  3419. if r.Body == nil {
  3420. t.Errorf("expect body not to be nil")
  3421. }
  3422. body, _ := ioutil.ReadAll(r.Body)
  3423. awstesting.AssertQuery(t, `Action=OperationName&Foo.1=a&Version=2014-01-01`, util.Trim(string(body)))
  3424. // assert URL
  3425. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3426. // assert headers
  3427. }
  3428. func TestInputService5ProtocolTestSerializeFlattenedMapTypeCase1(t *testing.T) {
  3429. svc := NewInputService5ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3430. input := &InputService5TestShapeInputService5TestCaseOperation1Input{
  3431. MapArg: map[string]*string{
  3432. "key1": aws.String("val1"),
  3433. "key2": aws.String("val2"),
  3434. },
  3435. }
  3436. req, _ := svc.InputService5TestCaseOperation1Request(input)
  3437. r := req.HTTPRequest
  3438. // build request
  3439. req.Build()
  3440. if req.Error != nil {
  3441. t.Errorf("expect no error, got %v", req.Error)
  3442. }
  3443. // assert body
  3444. if r.Body == nil {
  3445. t.Errorf("expect body not to be nil")
  3446. }
  3447. body, _ := ioutil.ReadAll(r.Body)
  3448. awstesting.AssertQuery(t, `Action=OperationName&MapArg.1.key=key1&MapArg.1.value=val1&MapArg.2.key=key2&MapArg.2.value=val2&Version=2014-01-01`, util.Trim(string(body)))
  3449. // assert URL
  3450. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3451. // assert headers
  3452. }
  3453. func TestInputService6ProtocolTestNonFlattenedListWithLocationNameCase1(t *testing.T) {
  3454. svc := NewInputService6ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3455. input := &InputService6TestShapeInputService6TestCaseOperation1Input{
  3456. ListArg: []*string{
  3457. aws.String("a"),
  3458. aws.String("b"),
  3459. aws.String("c"),
  3460. },
  3461. }
  3462. req, _ := svc.InputService6TestCaseOperation1Request(input)
  3463. r := req.HTTPRequest
  3464. // build request
  3465. req.Build()
  3466. if req.Error != nil {
  3467. t.Errorf("expect no error, got %v", req.Error)
  3468. }
  3469. // assert body
  3470. if r.Body == nil {
  3471. t.Errorf("expect body not to be nil")
  3472. }
  3473. body, _ := ioutil.ReadAll(r.Body)
  3474. awstesting.AssertQuery(t, `Action=OperationName&ListArg.item.1=a&ListArg.item.2=b&ListArg.item.3=c&Version=2014-01-01`, util.Trim(string(body)))
  3475. // assert URL
  3476. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3477. // assert headers
  3478. }
  3479. func TestInputService7ProtocolTestFlattenedListWithLocationNameCase1(t *testing.T) {
  3480. svc := NewInputService7ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3481. input := &InputService7TestShapeInputService7TestCaseOperation1Input{
  3482. ListArg: []*string{
  3483. aws.String("a"),
  3484. aws.String("b"),
  3485. aws.String("c"),
  3486. },
  3487. ScalarArg: aws.String("foo"),
  3488. }
  3489. req, _ := svc.InputService7TestCaseOperation1Request(input)
  3490. r := req.HTTPRequest
  3491. // build request
  3492. req.Build()
  3493. if req.Error != nil {
  3494. t.Errorf("expect no error, got %v", req.Error)
  3495. }
  3496. // assert body
  3497. if r.Body == nil {
  3498. t.Errorf("expect body not to be nil")
  3499. }
  3500. body, _ := ioutil.ReadAll(r.Body)
  3501. awstesting.AssertQuery(t, `Action=OperationName&ListArgLocation.1=a&ListArgLocation.2=b&ListArgLocation.3=c&ScalarArg=foo&Version=2014-01-01`, util.Trim(string(body)))
  3502. // assert URL
  3503. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3504. // assert headers
  3505. }
  3506. func TestInputService8ProtocolTestSerializeMapTypeCase1(t *testing.T) {
  3507. svc := NewInputService8ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3508. input := &InputService8TestShapeInputService8TestCaseOperation1Input{
  3509. MapArg: map[string]*string{
  3510. "key1": aws.String("val1"),
  3511. "key2": aws.String("val2"),
  3512. },
  3513. }
  3514. req, _ := svc.InputService8TestCaseOperation1Request(input)
  3515. r := req.HTTPRequest
  3516. // build request
  3517. req.Build()
  3518. if req.Error != nil {
  3519. t.Errorf("expect no error, got %v", req.Error)
  3520. }
  3521. // assert body
  3522. if r.Body == nil {
  3523. t.Errorf("expect body not to be nil")
  3524. }
  3525. body, _ := ioutil.ReadAll(r.Body)
  3526. awstesting.AssertQuery(t, `Action=OperationName&MapArg.entry.1.key=key1&MapArg.entry.1.value=val1&MapArg.entry.2.key=key2&MapArg.entry.2.value=val2&Version=2014-01-01`, util.Trim(string(body)))
  3527. // assert URL
  3528. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3529. // assert headers
  3530. }
  3531. func TestInputService9ProtocolTestSerializeMapTypeWithLocationNameCase1(t *testing.T) {
  3532. svc := NewInputService9ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3533. input := &InputService9TestShapeInputService9TestCaseOperation1Input{
  3534. MapArg: map[string]*string{
  3535. "key1": aws.String("val1"),
  3536. "key2": aws.String("val2"),
  3537. },
  3538. }
  3539. req, _ := svc.InputService9TestCaseOperation1Request(input)
  3540. r := req.HTTPRequest
  3541. // build request
  3542. req.Build()
  3543. if req.Error != nil {
  3544. t.Errorf("expect no error, got %v", req.Error)
  3545. }
  3546. // assert body
  3547. if r.Body == nil {
  3548. t.Errorf("expect body not to be nil")
  3549. }
  3550. body, _ := ioutil.ReadAll(r.Body)
  3551. awstesting.AssertQuery(t, `Action=OperationName&MapArg.entry.1.TheKey=key1&MapArg.entry.1.TheValue=val1&MapArg.entry.2.TheKey=key2&MapArg.entry.2.TheValue=val2&Version=2014-01-01`, util.Trim(string(body)))
  3552. // assert URL
  3553. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3554. // assert headers
  3555. }
  3556. func TestInputService10ProtocolTestBase64EncodedBlobsCase1(t *testing.T) {
  3557. svc := NewInputService10ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3558. input := &InputService10TestShapeInputService10TestCaseOperation1Input{
  3559. BlobArg: []byte("foo"),
  3560. }
  3561. req, _ := svc.InputService10TestCaseOperation1Request(input)
  3562. r := req.HTTPRequest
  3563. // build request
  3564. req.Build()
  3565. if req.Error != nil {
  3566. t.Errorf("expect no error, got %v", req.Error)
  3567. }
  3568. // assert body
  3569. if r.Body == nil {
  3570. t.Errorf("expect body not to be nil")
  3571. }
  3572. body, _ := ioutil.ReadAll(r.Body)
  3573. awstesting.AssertQuery(t, `Action=OperationName&BlobArg=Zm9v&Version=2014-01-01`, util.Trim(string(body)))
  3574. // assert URL
  3575. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3576. // assert headers
  3577. }
  3578. func TestInputService11ProtocolTestBase64EncodedBlobsNestedCase1(t *testing.T) {
  3579. svc := NewInputService11ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3580. input := &InputService11TestShapeInputService11TestCaseOperation1Input{
  3581. BlobArgs: [][]byte{
  3582. []byte("foo"),
  3583. },
  3584. }
  3585. req, _ := svc.InputService11TestCaseOperation1Request(input)
  3586. r := req.HTTPRequest
  3587. // build request
  3588. req.Build()
  3589. if req.Error != nil {
  3590. t.Errorf("expect no error, got %v", req.Error)
  3591. }
  3592. // assert body
  3593. if r.Body == nil {
  3594. t.Errorf("expect body not to be nil")
  3595. }
  3596. body, _ := ioutil.ReadAll(r.Body)
  3597. awstesting.AssertQuery(t, `Action=OperationName&BlobArgs.1=Zm9v&Version=2014-01-01`, util.Trim(string(body)))
  3598. // assert URL
  3599. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3600. // assert headers
  3601. }
  3602. func TestInputService12ProtocolTestTimestampValuesCase1(t *testing.T) {
  3603. svc := NewInputService12ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3604. input := &InputService12TestShapeInputService12TestCaseOperation1Input{
  3605. TimeArg: aws.Time(time.Unix(1422172800, 0)),
  3606. TimeCustom: aws.Time(time.Unix(1422172800, 0)),
  3607. TimeFormat: aws.Time(time.Unix(1422172800, 0)),
  3608. }
  3609. req, _ := svc.InputService12TestCaseOperation1Request(input)
  3610. r := req.HTTPRequest
  3611. // build request
  3612. req.Build()
  3613. if req.Error != nil {
  3614. t.Errorf("expect no error, got %v", req.Error)
  3615. }
  3616. // assert body
  3617. if r.Body == nil {
  3618. t.Errorf("expect body not to be nil")
  3619. }
  3620. body, _ := ioutil.ReadAll(r.Body)
  3621. awstesting.AssertQuery(t, `Action=OperationName&TimeArg=2015-01-25T08%3A00%3A00Z&TimeCustom=1422172800&TimeFormat=1422172800&Version=2014-01-01`, util.Trim(string(body)))
  3622. // assert URL
  3623. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3624. // assert headers
  3625. }
  3626. func TestInputService13ProtocolTestRecursiveShapesCase1(t *testing.T) {
  3627. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3628. input := &InputService13TestShapeInputService13TestCaseOperation1Input{
  3629. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3630. NoRecurse: aws.String("foo"),
  3631. },
  3632. }
  3633. req, _ := svc.InputService13TestCaseOperation1Request(input)
  3634. r := req.HTTPRequest
  3635. // build request
  3636. req.Build()
  3637. if req.Error != nil {
  3638. t.Errorf("expect no error, got %v", req.Error)
  3639. }
  3640. // assert body
  3641. if r.Body == nil {
  3642. t.Errorf("expect body not to be nil")
  3643. }
  3644. body, _ := ioutil.ReadAll(r.Body)
  3645. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
  3646. // assert URL
  3647. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3648. // assert headers
  3649. }
  3650. func TestInputService13ProtocolTestRecursiveShapesCase2(t *testing.T) {
  3651. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3652. input := &InputService13TestShapeInputService13TestCaseOperation2Input{
  3653. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3654. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3655. NoRecurse: aws.String("foo"),
  3656. },
  3657. },
  3658. }
  3659. req, _ := svc.InputService13TestCaseOperation2Request(input)
  3660. r := req.HTTPRequest
  3661. // build request
  3662. req.Build()
  3663. if req.Error != nil {
  3664. t.Errorf("expect no error, got %v", req.Error)
  3665. }
  3666. // assert body
  3667. if r.Body == nil {
  3668. t.Errorf("expect body not to be nil")
  3669. }
  3670. body, _ := ioutil.ReadAll(r.Body)
  3671. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
  3672. // assert URL
  3673. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3674. // assert headers
  3675. }
  3676. func TestInputService13ProtocolTestRecursiveShapesCase3(t *testing.T) {
  3677. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3678. input := &InputService13TestShapeInputService13TestCaseOperation3Input{
  3679. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3680. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3681. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3682. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3683. NoRecurse: aws.String("foo"),
  3684. },
  3685. },
  3686. },
  3687. },
  3688. }
  3689. req, _ := svc.InputService13TestCaseOperation3Request(input)
  3690. r := req.HTTPRequest
  3691. // build request
  3692. req.Build()
  3693. if req.Error != nil {
  3694. t.Errorf("expect no error, got %v", req.Error)
  3695. }
  3696. // assert body
  3697. if r.Body == nil {
  3698. t.Errorf("expect body not to be nil")
  3699. }
  3700. body, _ := ioutil.ReadAll(r.Body)
  3701. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveStruct.RecursiveStruct.RecursiveStruct.NoRecurse=foo&Version=2014-01-01`, util.Trim(string(body)))
  3702. // assert URL
  3703. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3704. // assert headers
  3705. }
  3706. func TestInputService13ProtocolTestRecursiveShapesCase4(t *testing.T) {
  3707. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3708. input := &InputService13TestShapeInputService13TestCaseOperation4Input{
  3709. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3710. RecursiveList: []*InputService13TestShapeRecursiveStructType{
  3711. {
  3712. NoRecurse: aws.String("foo"),
  3713. },
  3714. {
  3715. NoRecurse: aws.String("bar"),
  3716. },
  3717. },
  3718. },
  3719. }
  3720. req, _ := svc.InputService13TestCaseOperation4Request(input)
  3721. r := req.HTTPRequest
  3722. // build request
  3723. req.Build()
  3724. if req.Error != nil {
  3725. t.Errorf("expect no error, got %v", req.Error)
  3726. }
  3727. // assert body
  3728. if r.Body == nil {
  3729. t.Errorf("expect body not to be nil")
  3730. }
  3731. body, _ := ioutil.ReadAll(r.Body)
  3732. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
  3733. // assert URL
  3734. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3735. // assert headers
  3736. }
  3737. func TestInputService13ProtocolTestRecursiveShapesCase5(t *testing.T) {
  3738. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3739. input := &InputService13TestShapeInputService13TestCaseOperation5Input{
  3740. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3741. RecursiveList: []*InputService13TestShapeRecursiveStructType{
  3742. {
  3743. NoRecurse: aws.String("foo"),
  3744. },
  3745. {
  3746. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3747. NoRecurse: aws.String("bar"),
  3748. },
  3749. },
  3750. },
  3751. },
  3752. }
  3753. req, _ := svc.InputService13TestCaseOperation5Request(input)
  3754. r := req.HTTPRequest
  3755. // build request
  3756. req.Build()
  3757. if req.Error != nil {
  3758. t.Errorf("expect no error, got %v", req.Error)
  3759. }
  3760. // assert body
  3761. if r.Body == nil {
  3762. t.Errorf("expect body not to be nil")
  3763. }
  3764. body, _ := ioutil.ReadAll(r.Body)
  3765. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveList.member.1.NoRecurse=foo&RecursiveStruct.RecursiveList.member.2.RecursiveStruct.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
  3766. // assert URL
  3767. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3768. // assert headers
  3769. }
  3770. func TestInputService13ProtocolTestRecursiveShapesCase6(t *testing.T) {
  3771. svc := NewInputService13ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3772. input := &InputService13TestShapeInputService13TestCaseOperation6Input{
  3773. RecursiveStruct: &InputService13TestShapeRecursiveStructType{
  3774. RecursiveMap: map[string]*InputService13TestShapeRecursiveStructType{
  3775. "bar": {
  3776. NoRecurse: aws.String("bar"),
  3777. },
  3778. "foo": {
  3779. NoRecurse: aws.String("foo"),
  3780. },
  3781. },
  3782. },
  3783. }
  3784. req, _ := svc.InputService13TestCaseOperation6Request(input)
  3785. r := req.HTTPRequest
  3786. // build request
  3787. req.Build()
  3788. if req.Error != nil {
  3789. t.Errorf("expect no error, got %v", req.Error)
  3790. }
  3791. // assert body
  3792. if r.Body == nil {
  3793. t.Errorf("expect body not to be nil")
  3794. }
  3795. body, _ := ioutil.ReadAll(r.Body)
  3796. awstesting.AssertQuery(t, `Action=OperationName&RecursiveStruct.RecursiveMap.entry.1.key=foo&RecursiveStruct.RecursiveMap.entry.1.value.NoRecurse=foo&RecursiveStruct.RecursiveMap.entry.2.key=bar&RecursiveStruct.RecursiveMap.entry.2.value.NoRecurse=bar&Version=2014-01-01`, util.Trim(string(body)))
  3797. // assert URL
  3798. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3799. // assert headers
  3800. }
  3801. func TestInputService14ProtocolTestIdempotencyTokenAutoFillCase1(t *testing.T) {
  3802. svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3803. input := &InputService14TestShapeInputService14TestCaseOperation1Input{
  3804. Token: aws.String("abc123"),
  3805. }
  3806. req, _ := svc.InputService14TestCaseOperation1Request(input)
  3807. r := req.HTTPRequest
  3808. // build request
  3809. req.Build()
  3810. if req.Error != nil {
  3811. t.Errorf("expect no error, got %v", req.Error)
  3812. }
  3813. // assert body
  3814. if r.Body == nil {
  3815. t.Errorf("expect body not to be nil")
  3816. }
  3817. body, _ := ioutil.ReadAll(r.Body)
  3818. awstesting.AssertQuery(t, `Action=OperationName&Token=abc123&Version=2014-01-01`, util.Trim(string(body)))
  3819. // assert URL
  3820. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3821. // assert headers
  3822. }
  3823. func TestInputService14ProtocolTestIdempotencyTokenAutoFillCase2(t *testing.T) {
  3824. svc := NewInputService14ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3825. input := &InputService14TestShapeInputService14TestCaseOperation2Input{}
  3826. req, _ := svc.InputService14TestCaseOperation2Request(input)
  3827. r := req.HTTPRequest
  3828. // build request
  3829. req.Build()
  3830. if req.Error != nil {
  3831. t.Errorf("expect no error, got %v", req.Error)
  3832. }
  3833. // assert body
  3834. if r.Body == nil {
  3835. t.Errorf("expect body not to be nil")
  3836. }
  3837. body, _ := ioutil.ReadAll(r.Body)
  3838. awstesting.AssertQuery(t, `Action=OperationName&Token=00000000-0000-4000-8000-000000000000&Version=2014-01-01`, util.Trim(string(body)))
  3839. // assert URL
  3840. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3841. // assert headers
  3842. }
  3843. func TestInputService15ProtocolTestEnumCase1(t *testing.T) {
  3844. svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3845. input := &InputService15TestShapeInputService15TestCaseOperation1Input{
  3846. FooEnum: aws.String("foo"),
  3847. ListEnums: []*string{
  3848. aws.String("foo"),
  3849. aws.String(""),
  3850. aws.String("bar"),
  3851. },
  3852. }
  3853. req, _ := svc.InputService15TestCaseOperation1Request(input)
  3854. r := req.HTTPRequest
  3855. // build request
  3856. req.Build()
  3857. if req.Error != nil {
  3858. t.Errorf("expect no error, got %v", req.Error)
  3859. }
  3860. // assert body
  3861. if r.Body == nil {
  3862. t.Errorf("expect body not to be nil")
  3863. }
  3864. body, _ := ioutil.ReadAll(r.Body)
  3865. awstesting.AssertQuery(t, `Action=OperationName&FooEnum=foo&ListEnums.member.1=foo&ListEnums.member.2=&ListEnums.member.3=bar&Version=2014-01-01`, util.Trim(string(body)))
  3866. // assert URL
  3867. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3868. // assert headers
  3869. }
  3870. func TestInputService15ProtocolTestEnumCase2(t *testing.T) {
  3871. svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3872. input := &InputService15TestShapeInputService15TestCaseOperation2Input{
  3873. FooEnum: aws.String("foo"),
  3874. }
  3875. req, _ := svc.InputService15TestCaseOperation2Request(input)
  3876. r := req.HTTPRequest
  3877. // build request
  3878. req.Build()
  3879. if req.Error != nil {
  3880. t.Errorf("expect no error, got %v", req.Error)
  3881. }
  3882. // assert body
  3883. if r.Body == nil {
  3884. t.Errorf("expect body not to be nil")
  3885. }
  3886. body, _ := ioutil.ReadAll(r.Body)
  3887. awstesting.AssertQuery(t, `Action=OperationName&FooEnum=foo&Version=2014-01-01`, util.Trim(string(body)))
  3888. // assert URL
  3889. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3890. // assert headers
  3891. }
  3892. func TestInputService15ProtocolTestEnumCase3(t *testing.T) {
  3893. svc := NewInputService15ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://test")})
  3894. input := &InputService15TestShapeInputService15TestCaseOperation3Input{}
  3895. req, _ := svc.InputService15TestCaseOperation3Request(input)
  3896. r := req.HTTPRequest
  3897. // build request
  3898. req.Build()
  3899. if req.Error != nil {
  3900. t.Errorf("expect no error, got %v", req.Error)
  3901. }
  3902. // assert body
  3903. if r.Body == nil {
  3904. t.Errorf("expect body not to be nil")
  3905. }
  3906. body, _ := ioutil.ReadAll(r.Body)
  3907. awstesting.AssertQuery(t, `Action=OperationName&Version=2014-01-01`, util.Trim(string(body)))
  3908. // assert URL
  3909. awstesting.AssertURL(t, "https://test/", r.URL.String())
  3910. // assert headers
  3911. }
  3912. func TestInputService16ProtocolTestEndpointHostTraitCase1(t *testing.T) {
  3913. svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")})
  3914. input := &InputService16TestShapeInputService16TestCaseOperation1Input{
  3915. Name: aws.String("myname"),
  3916. }
  3917. req, _ := svc.InputService16TestCaseOperation1Request(input)
  3918. r := req.HTTPRequest
  3919. // build request
  3920. req.Build()
  3921. if req.Error != nil {
  3922. t.Errorf("expect no error, got %v", req.Error)
  3923. }
  3924. // assert body
  3925. if r.Body == nil {
  3926. t.Errorf("expect body not to be nil")
  3927. }
  3928. body, _ := ioutil.ReadAll(r.Body)
  3929. awstesting.AssertQuery(t, `Action=StaticOp&Name=myname&Version=2014-01-01`, util.Trim(string(body)))
  3930. // assert URL
  3931. awstesting.AssertURL(t, "https://data-service.region.amazonaws.com/", r.URL.String())
  3932. // assert headers
  3933. }
  3934. func TestInputService16ProtocolTestEndpointHostTraitCase2(t *testing.T) {
  3935. svc := NewInputService16ProtocolTest(unit.Session, &aws.Config{Endpoint: aws.String("https://service.region.amazonaws.com")})
  3936. input := &InputService16TestShapeInputService16TestCaseOperation2Input{
  3937. Name: aws.String("myname"),
  3938. }
  3939. req, _ := svc.InputService16TestCaseOperation2Request(input)
  3940. r := req.HTTPRequest
  3941. // build request
  3942. req.Build()
  3943. if req.Error != nil {
  3944. t.Errorf("expect no error, got %v", req.Error)
  3945. }
  3946. // assert body
  3947. if r.Body == nil {
  3948. t.Errorf("expect body not to be nil")
  3949. }
  3950. body, _ := ioutil.ReadAll(r.Body)
  3951. awstesting.AssertQuery(t, `Action=MemberRefOp&Name=myname&Version=2014-01-01`, util.Trim(string(body)))
  3952. // assert URL
  3953. awstesting.AssertURL(t, "https://foo-myname.service.region.amazonaws.com/", r.URL.String())
  3954. // assert headers
  3955. }