model.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806
  1. package models
  2. import (
  3. "io"
  4. "github.com/alibabacloud-go/tea/dara"
  5. credential "github.com/aliyun/credentials-go/credentials"
  6. )
  7. // Description:
  8. //
  9. // This is for OpenApi Util
  10. type iGlobalParameters interface {
  11. dara.Model
  12. String() string
  13. GoString() string
  14. SetHeaders(v map[string]*string) *GlobalParameters
  15. GetHeaders() map[string]*string
  16. SetQueries(v map[string]*string) *GlobalParameters
  17. GetQueries() map[string]*string
  18. }
  19. type GlobalParameters struct {
  20. dara.Model
  21. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  22. Queries map[string]*string `json:"queries,omitempty" xml:"queries,omitempty"`
  23. }
  24. func (s GlobalParameters) String() string {
  25. return dara.Prettify(s)
  26. }
  27. func (s GlobalParameters) GoString() string {
  28. return s.String()
  29. }
  30. func (s *GlobalParameters) GetHeaders() map[string]*string {
  31. return s.Headers
  32. }
  33. func (s *GlobalParameters) GetQueries() map[string]*string {
  34. return s.Queries
  35. }
  36. func (s *GlobalParameters) SetHeaders(v map[string]*string) *GlobalParameters {
  37. s.Headers = v
  38. return s
  39. }
  40. func (s *GlobalParameters) SetQueries(v map[string]*string) *GlobalParameters {
  41. s.Queries = v
  42. return s
  43. }
  44. type iConfig interface {
  45. dara.Model
  46. String() string
  47. GoString() string
  48. SetAccessKeyId(v string) *Config
  49. GetAccessKeyId() *string
  50. SetAccessKeySecret(v string) *Config
  51. GetAccessKeySecret() *string
  52. SetSecurityToken(v string) *Config
  53. GetSecurityToken() *string
  54. SetBearerToken(v string) *Config
  55. GetBearerToken() *string
  56. SetProtocol(v string) *Config
  57. GetProtocol() *string
  58. SetMethod(v string) *Config
  59. GetMethod() *string
  60. SetRegionId(v string) *Config
  61. GetRegionId() *string
  62. SetReadTimeout(v int) *Config
  63. GetReadTimeout() *int
  64. SetConnectTimeout(v int) *Config
  65. GetConnectTimeout() *int
  66. SetHttpProxy(v string) *Config
  67. GetHttpProxy() *string
  68. SetHttpsProxy(v string) *Config
  69. GetHttpsProxy() *string
  70. SetCredential(v credential.Credential) *Config
  71. GetCredential() credential.Credential
  72. SetEndpoint(v string) *Config
  73. GetEndpoint() *string
  74. SetNoProxy(v string) *Config
  75. GetNoProxy() *string
  76. SetMaxIdleConns(v int) *Config
  77. GetMaxIdleConns() *int
  78. SetNetwork(v string) *Config
  79. GetNetwork() *string
  80. SetUserAgent(v string) *Config
  81. GetUserAgent() *string
  82. SetSuffix(v string) *Config
  83. GetSuffix() *string
  84. SetSocks5Proxy(v string) *Config
  85. GetSocks5Proxy() *string
  86. SetSocks5NetWork(v string) *Config
  87. GetSocks5NetWork() *string
  88. SetEndpointType(v string) *Config
  89. GetEndpointType() *string
  90. SetOpenPlatformEndpoint(v string) *Config
  91. GetOpenPlatformEndpoint() *string
  92. SetType(v string) *Config
  93. GetType() *string
  94. SetSignatureVersion(v string) *Config
  95. GetSignatureVersion() *string
  96. SetSignatureAlgorithm(v string) *Config
  97. GetSignatureAlgorithm() *string
  98. SetGlobalParameters(v *GlobalParameters) *Config
  99. GetGlobalParameters() *GlobalParameters
  100. SetKey(v string) *Config
  101. GetKey() *string
  102. SetCert(v string) *Config
  103. GetCert() *string
  104. SetCa(v string) *Config
  105. GetCa() *string
  106. SetDisableHttp2(v bool) *Config
  107. GetDisableHttp2() *bool
  108. SetRetryOptions(v *dara.RetryOptions) *Config
  109. GetRetryOptions() *dara.RetryOptions
  110. }
  111. // Description:
  112. //
  113. // Model for initing client
  114. type Config struct {
  115. dara.Model
  116. // accesskey id
  117. AccessKeyId *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"`
  118. // accesskey secret
  119. AccessKeySecret *string `json:"accessKeySecret,omitempty" xml:"accessKeySecret,omitempty"`
  120. // security token
  121. SecurityToken *string `json:"securityToken,omitempty" xml:"securityToken,omitempty"`
  122. // bearer token
  123. //
  124. // example:
  125. //
  126. // the-bearer-token
  127. BearerToken *string `json:"bearerToken,omitempty" xml:"bearerToken,omitempty"`
  128. // http protocol
  129. //
  130. // example:
  131. //
  132. // http
  133. Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty"`
  134. // http method
  135. //
  136. // example:
  137. //
  138. // GET
  139. Method *string `json:"method,omitempty" xml:"method,omitempty"`
  140. // region id
  141. //
  142. // example:
  143. //
  144. // cn-hangzhou
  145. RegionId *string `json:"regionId,omitempty" xml:"regionId,omitempty"`
  146. // read timeout
  147. //
  148. // example:
  149. //
  150. // 10
  151. ReadTimeout *int `json:"readTimeout,omitempty" xml:"readTimeout,omitempty"`
  152. // connect timeout
  153. //
  154. // example:
  155. //
  156. // 10
  157. ConnectTimeout *int `json:"connectTimeout,omitempty" xml:"connectTimeout,omitempty"`
  158. // http proxy
  159. //
  160. // example:
  161. //
  162. // http://localhost
  163. HttpProxy *string `json:"httpProxy,omitempty" xml:"httpProxy,omitempty"`
  164. // https proxy
  165. //
  166. // example:
  167. //
  168. // https://localhost
  169. HttpsProxy *string `json:"httpsProxy,omitempty" xml:"httpsProxy,omitempty"`
  170. // credential
  171. Credential credential.Credential `json:"credential,omitempty" xml:"credential,omitempty"`
  172. // endpoint
  173. //
  174. // example:
  175. //
  176. // cs.aliyuncs.com
  177. Endpoint *string `json:"endpoint,omitempty" xml:"endpoint,omitempty"`
  178. // proxy white list
  179. //
  180. // example:
  181. //
  182. // http://localhost
  183. NoProxy *string `json:"noProxy,omitempty" xml:"noProxy,omitempty"`
  184. // max idle conns
  185. //
  186. // example:
  187. //
  188. // 3
  189. MaxIdleConns *int `json:"maxIdleConns,omitempty" xml:"maxIdleConns,omitempty"`
  190. // network for endpoint
  191. //
  192. // example:
  193. //
  194. // public
  195. Network *string `json:"network,omitempty" xml:"network,omitempty"`
  196. // user agent
  197. //
  198. // example:
  199. //
  200. // Alibabacloud/1
  201. UserAgent *string `json:"userAgent,omitempty" xml:"userAgent,omitempty"`
  202. // suffix for endpoint
  203. //
  204. // example:
  205. //
  206. // aliyun
  207. Suffix *string `json:"suffix,omitempty" xml:"suffix,omitempty"`
  208. // socks5 proxy
  209. Socks5Proxy *string `json:"socks5Proxy,omitempty" xml:"socks5Proxy,omitempty"`
  210. // socks5 network
  211. //
  212. // example:
  213. //
  214. // TCP
  215. Socks5NetWork *string `json:"socks5NetWork,omitempty" xml:"socks5NetWork,omitempty"`
  216. // endpoint type
  217. //
  218. // example:
  219. //
  220. // internal
  221. EndpointType *string `json:"endpointType,omitempty" xml:"endpointType,omitempty"`
  222. // OpenPlatform endpoint
  223. //
  224. // example:
  225. //
  226. // openplatform.aliyuncs.com
  227. OpenPlatformEndpoint *string `json:"openPlatformEndpoint,omitempty" xml:"openPlatformEndpoint,omitempty"`
  228. // Deprecated
  229. //
  230. // credential type
  231. //
  232. // example:
  233. //
  234. // access_key
  235. Type *string `json:"type,omitempty" xml:"type,omitempty"`
  236. // Signature Version
  237. //
  238. // example:
  239. //
  240. // v1
  241. SignatureVersion *string `json:"signatureVersion,omitempty" xml:"signatureVersion,omitempty"`
  242. // Signature Algorithm
  243. //
  244. // example:
  245. //
  246. // ACS3-HMAC-SHA256
  247. SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty" xml:"signatureAlgorithm,omitempty"`
  248. // Global Parameters
  249. GlobalParameters *GlobalParameters `json:"globalParameters,omitempty" xml:"globalParameters,omitempty"`
  250. // privite key for client certificate
  251. //
  252. // example:
  253. //
  254. // MIIEvQ
  255. Key *string `json:"key,omitempty" xml:"key,omitempty"`
  256. // client certificate
  257. //
  258. // example:
  259. //
  260. // -----BEGIN CERTIFICATE-----
  261. //
  262. // xxx-----END CERTIFICATE-----
  263. Cert *string `json:"cert,omitempty" xml:"cert,omitempty"`
  264. // server certificate
  265. //
  266. // example:
  267. //
  268. // -----BEGIN CERTIFICATE-----
  269. //
  270. // xxx-----END CERTIFICATE-----
  271. Ca *string `json:"ca,omitempty" xml:"ca,omitempty"`
  272. // disable HTTP/2
  273. //
  274. // example:
  275. //
  276. // false
  277. DisableHttp2 *bool `json:"disableHttp2,omitempty" xml:"disableHttp2,omitempty"`
  278. // retry options
  279. RetryOptions *dara.RetryOptions `json:"retryOptions,omitempty" xml:"retryOptions,omitempty"`
  280. // http client
  281. HttpClient dara.HttpClient `json:"httpClient,omitempty" xml:"httpClient,omitempty"`
  282. }
  283. func (s Config) String() string {
  284. return dara.Prettify(s)
  285. }
  286. func (s Config) GoString() string {
  287. return s.String()
  288. }
  289. func (s *Config) GetAccessKeyId() *string {
  290. return s.AccessKeyId
  291. }
  292. func (s *Config) GetAccessKeySecret() *string {
  293. return s.AccessKeySecret
  294. }
  295. func (s *Config) GetSecurityToken() *string {
  296. return s.SecurityToken
  297. }
  298. func (s *Config) GetBearerToken() *string {
  299. return s.BearerToken
  300. }
  301. func (s *Config) GetProtocol() *string {
  302. return s.Protocol
  303. }
  304. func (s *Config) GetMethod() *string {
  305. return s.Method
  306. }
  307. func (s *Config) GetRegionId() *string {
  308. return s.RegionId
  309. }
  310. func (s *Config) GetReadTimeout() *int {
  311. return s.ReadTimeout
  312. }
  313. func (s *Config) GetConnectTimeout() *int {
  314. return s.ConnectTimeout
  315. }
  316. func (s *Config) GetHttpProxy() *string {
  317. return s.HttpProxy
  318. }
  319. func (s *Config) GetHttpsProxy() *string {
  320. return s.HttpsProxy
  321. }
  322. func (s *Config) GetCredential() credential.Credential {
  323. return s.Credential
  324. }
  325. func (s *Config) GetEndpoint() *string {
  326. return s.Endpoint
  327. }
  328. func (s *Config) GetNoProxy() *string {
  329. return s.NoProxy
  330. }
  331. func (s *Config) GetMaxIdleConns() *int {
  332. return s.MaxIdleConns
  333. }
  334. func (s *Config) GetNetwork() *string {
  335. return s.Network
  336. }
  337. func (s *Config) GetUserAgent() *string {
  338. return s.UserAgent
  339. }
  340. func (s *Config) GetSuffix() *string {
  341. return s.Suffix
  342. }
  343. func (s *Config) GetSocks5Proxy() *string {
  344. return s.Socks5Proxy
  345. }
  346. func (s *Config) GetSocks5NetWork() *string {
  347. return s.Socks5NetWork
  348. }
  349. func (s *Config) GetEndpointType() *string {
  350. return s.EndpointType
  351. }
  352. func (s *Config) GetOpenPlatformEndpoint() *string {
  353. return s.OpenPlatformEndpoint
  354. }
  355. func (s *Config) GetType() *string {
  356. return s.Type
  357. }
  358. func (s *Config) GetSignatureVersion() *string {
  359. return s.SignatureVersion
  360. }
  361. func (s *Config) GetSignatureAlgorithm() *string {
  362. return s.SignatureAlgorithm
  363. }
  364. func (s *Config) GetGlobalParameters() *GlobalParameters {
  365. return s.GlobalParameters
  366. }
  367. func (s *Config) GetKey() *string {
  368. return s.Key
  369. }
  370. func (s *Config) GetCert() *string {
  371. return s.Cert
  372. }
  373. func (s *Config) GetCa() *string {
  374. return s.Ca
  375. }
  376. func (s *Config) GetDisableHttp2() *bool {
  377. return s.DisableHttp2
  378. }
  379. func (s *Config) GetRetryOptions() *dara.RetryOptions {
  380. return s.RetryOptions
  381. }
  382. func (s *Config) GetHttpClient() dara.HttpClient {
  383. return s.HttpClient
  384. }
  385. func (s *Config) SetAccessKeyId(v string) *Config {
  386. s.AccessKeyId = &v
  387. return s
  388. }
  389. func (s *Config) SetAccessKeySecret(v string) *Config {
  390. s.AccessKeySecret = &v
  391. return s
  392. }
  393. func (s *Config) SetSecurityToken(v string) *Config {
  394. s.SecurityToken = &v
  395. return s
  396. }
  397. func (s *Config) SetBearerToken(v string) *Config {
  398. s.BearerToken = &v
  399. return s
  400. }
  401. func (s *Config) SetProtocol(v string) *Config {
  402. s.Protocol = &v
  403. return s
  404. }
  405. func (s *Config) SetMethod(v string) *Config {
  406. s.Method = &v
  407. return s
  408. }
  409. func (s *Config) SetRegionId(v string) *Config {
  410. s.RegionId = &v
  411. return s
  412. }
  413. func (s *Config) SetReadTimeout(v int) *Config {
  414. s.ReadTimeout = &v
  415. return s
  416. }
  417. func (s *Config) SetConnectTimeout(v int) *Config {
  418. s.ConnectTimeout = &v
  419. return s
  420. }
  421. func (s *Config) SetHttpProxy(v string) *Config {
  422. s.HttpProxy = &v
  423. return s
  424. }
  425. func (s *Config) SetHttpsProxy(v string) *Config {
  426. s.HttpsProxy = &v
  427. return s
  428. }
  429. func (s *Config) SetCredential(v credential.Credential) *Config {
  430. s.Credential = v
  431. return s
  432. }
  433. func (s *Config) SetEndpoint(v string) *Config {
  434. s.Endpoint = &v
  435. return s
  436. }
  437. func (s *Config) SetNoProxy(v string) *Config {
  438. s.NoProxy = &v
  439. return s
  440. }
  441. func (s *Config) SetMaxIdleConns(v int) *Config {
  442. s.MaxIdleConns = &v
  443. return s
  444. }
  445. func (s *Config) SetNetwork(v string) *Config {
  446. s.Network = &v
  447. return s
  448. }
  449. func (s *Config) SetUserAgent(v string) *Config {
  450. s.UserAgent = &v
  451. return s
  452. }
  453. func (s *Config) SetSuffix(v string) *Config {
  454. s.Suffix = &v
  455. return s
  456. }
  457. func (s *Config) SetSocks5Proxy(v string) *Config {
  458. s.Socks5Proxy = &v
  459. return s
  460. }
  461. func (s *Config) SetSocks5NetWork(v string) *Config {
  462. s.Socks5NetWork = &v
  463. return s
  464. }
  465. func (s *Config) SetEndpointType(v string) *Config {
  466. s.EndpointType = &v
  467. return s
  468. }
  469. func (s *Config) SetOpenPlatformEndpoint(v string) *Config {
  470. s.OpenPlatformEndpoint = &v
  471. return s
  472. }
  473. func (s *Config) SetType(v string) *Config {
  474. s.Type = &v
  475. return s
  476. }
  477. func (s *Config) SetSignatureVersion(v string) *Config {
  478. s.SignatureVersion = &v
  479. return s
  480. }
  481. func (s *Config) SetSignatureAlgorithm(v string) *Config {
  482. s.SignatureAlgorithm = &v
  483. return s
  484. }
  485. func (s *Config) SetGlobalParameters(v *GlobalParameters) *Config {
  486. s.GlobalParameters = v
  487. return s
  488. }
  489. func (s *Config) SetKey(v string) *Config {
  490. s.Key = &v
  491. return s
  492. }
  493. func (s *Config) SetCert(v string) *Config {
  494. s.Cert = &v
  495. return s
  496. }
  497. func (s *Config) SetCa(v string) *Config {
  498. s.Ca = &v
  499. return s
  500. }
  501. func (s *Config) SetDisableHttp2(v bool) *Config {
  502. s.DisableHttp2 = &v
  503. return s
  504. }
  505. func (s *Config) SetRetryOptions(v *dara.RetryOptions) *Config {
  506. s.RetryOptions = v
  507. return s
  508. }
  509. func (s *Config) SetHttpClient(v dara.HttpClient) *Config {
  510. s.HttpClient = v
  511. return s
  512. }
  513. type iParams interface {
  514. dara.Model
  515. String() string
  516. GoString() string
  517. SetAction(v string) *Params
  518. GetAction() *string
  519. SetVersion(v string) *Params
  520. GetVersion() *string
  521. SetProtocol(v string) *Params
  522. GetProtocol() *string
  523. SetPathname(v string) *Params
  524. GetPathname() *string
  525. SetMethod(v string) *Params
  526. GetMethod() *string
  527. SetAuthType(v string) *Params
  528. GetAuthType() *string
  529. SetBodyType(v string) *Params
  530. GetBodyType() *string
  531. SetReqBodyType(v string) *Params
  532. GetReqBodyType() *string
  533. SetStyle(v string) *Params
  534. GetStyle() *string
  535. }
  536. type Params struct {
  537. dara.Model
  538. Action *string `json:"action,omitempty" xml:"action,omitempty" require:"true"`
  539. Version *string `json:"version,omitempty" xml:"version,omitempty" require:"true"`
  540. Protocol *string `json:"protocol,omitempty" xml:"protocol,omitempty" require:"true"`
  541. Pathname *string `json:"pathname,omitempty" xml:"pathname,omitempty" require:"true"`
  542. Method *string `json:"method,omitempty" xml:"method,omitempty" require:"true"`
  543. AuthType *string `json:"authType,omitempty" xml:"authType,omitempty" require:"true"`
  544. BodyType *string `json:"bodyType,omitempty" xml:"bodyType,omitempty" require:"true"`
  545. ReqBodyType *string `json:"reqBodyType,omitempty" xml:"reqBodyType,omitempty" require:"true"`
  546. Style *string `json:"style,omitempty" xml:"style,omitempty"`
  547. }
  548. func (s Params) String() string {
  549. return dara.Prettify(s)
  550. }
  551. func (s Params) GoString() string {
  552. return s.String()
  553. }
  554. func (s *Params) GetAction() *string {
  555. return s.Action
  556. }
  557. func (s *Params) GetVersion() *string {
  558. return s.Version
  559. }
  560. func (s *Params) GetProtocol() *string {
  561. return s.Protocol
  562. }
  563. func (s *Params) GetPathname() *string {
  564. return s.Pathname
  565. }
  566. func (s *Params) GetMethod() *string {
  567. return s.Method
  568. }
  569. func (s *Params) GetAuthType() *string {
  570. return s.AuthType
  571. }
  572. func (s *Params) GetBodyType() *string {
  573. return s.BodyType
  574. }
  575. func (s *Params) GetReqBodyType() *string {
  576. return s.ReqBodyType
  577. }
  578. func (s *Params) GetStyle() *string {
  579. return s.Style
  580. }
  581. func (s *Params) SetAction(v string) *Params {
  582. s.Action = &v
  583. return s
  584. }
  585. func (s *Params) SetVersion(v string) *Params {
  586. s.Version = &v
  587. return s
  588. }
  589. func (s *Params) SetProtocol(v string) *Params {
  590. s.Protocol = &v
  591. return s
  592. }
  593. func (s *Params) SetPathname(v string) *Params {
  594. s.Pathname = &v
  595. return s
  596. }
  597. func (s *Params) SetMethod(v string) *Params {
  598. s.Method = &v
  599. return s
  600. }
  601. func (s *Params) SetAuthType(v string) *Params {
  602. s.AuthType = &v
  603. return s
  604. }
  605. func (s *Params) SetBodyType(v string) *Params {
  606. s.BodyType = &v
  607. return s
  608. }
  609. func (s *Params) SetReqBodyType(v string) *Params {
  610. s.ReqBodyType = &v
  611. return s
  612. }
  613. func (s *Params) SetStyle(v string) *Params {
  614. s.Style = &v
  615. return s
  616. }
  617. type iOpenApiRequest interface {
  618. dara.Model
  619. String() string
  620. GoString() string
  621. SetHeaders(v map[string]*string) *OpenApiRequest
  622. GetHeaders() map[string]*string
  623. SetQuery(v map[string]*string) *OpenApiRequest
  624. GetQuery() map[string]*string
  625. SetBody(v interface{}) *OpenApiRequest
  626. GetBody() interface{}
  627. SetStream(v io.Reader) *OpenApiRequest
  628. GetStream() io.Reader
  629. SetHostMap(v map[string]*string) *OpenApiRequest
  630. GetHostMap() map[string]*string
  631. SetEndpointOverride(v string) *OpenApiRequest
  632. GetEndpointOverride() *string
  633. }
  634. type OpenApiRequest struct {
  635. dara.Model
  636. Headers map[string]*string `json:"headers,omitempty" xml:"headers,omitempty"`
  637. Query map[string]*string `json:"query,omitempty" xml:"query,omitempty"`
  638. Body interface{} `json:"body,omitempty" xml:"body,omitempty"`
  639. Stream io.Reader `json:"stream,omitempty" xml:"stream,omitempty"`
  640. HostMap map[string]*string `json:"hostMap,omitempty" xml:"hostMap,omitempty"`
  641. EndpointOverride *string `json:"endpointOverride,omitempty" xml:"endpointOverride,omitempty"`
  642. }
  643. func (s OpenApiRequest) String() string {
  644. return dara.Prettify(s)
  645. }
  646. func (s OpenApiRequest) GoString() string {
  647. return s.String()
  648. }
  649. func (s *OpenApiRequest) GetHeaders() map[string]*string {
  650. return s.Headers
  651. }
  652. func (s *OpenApiRequest) GetQuery() map[string]*string {
  653. return s.Query
  654. }
  655. func (s *OpenApiRequest) GetBody() interface{} {
  656. return s.Body
  657. }
  658. func (s *OpenApiRequest) GetStream() io.Reader {
  659. return s.Stream
  660. }
  661. func (s *OpenApiRequest) GetHostMap() map[string]*string {
  662. return s.HostMap
  663. }
  664. func (s *OpenApiRequest) GetEndpointOverride() *string {
  665. return s.EndpointOverride
  666. }
  667. func (s *OpenApiRequest) SetHeaders(v map[string]*string) *OpenApiRequest {
  668. s.Headers = v
  669. return s
  670. }
  671. func (s *OpenApiRequest) SetQuery(v map[string]*string) *OpenApiRequest {
  672. s.Query = v
  673. return s
  674. }
  675. func (s *OpenApiRequest) SetBody(v interface{}) *OpenApiRequest {
  676. s.Body = v
  677. return s
  678. }
  679. func (s *OpenApiRequest) SetStream(v io.Reader) *OpenApiRequest {
  680. s.Stream = v
  681. return s
  682. }
  683. func (s *OpenApiRequest) SetHostMap(v map[string]*string) *OpenApiRequest {
  684. s.HostMap = v
  685. return s
  686. }
  687. func (s *OpenApiRequest) SetEndpointOverride(v string) *OpenApiRequest {
  688. s.EndpointOverride = &v
  689. return s
  690. }