preload_caches_request_model.go raw

   1  // This file is auto-generated, don't edit it. Thanks.
   2  package client
   3  
   4  import (
   5  	"github.com/alibabacloud-go/tea/dara"
   6  )
   7  
   8  type iPreloadCachesRequest interface {
   9  	dara.Model
  10  	String() string
  11  	GoString() string
  12  	SetContent(v []*string) *PreloadCachesRequest
  13  	GetContent() []*string
  14  	SetHeaders(v map[string]*string) *PreloadCachesRequest
  15  	GetHeaders() map[string]*string
  16  	SetSiteId(v int64) *PreloadCachesRequest
  17  	GetSiteId() *int64
  18  }
  19  
  20  type PreloadCachesRequest struct {
  21  	// The files to be prefetched.
  22  	Content []*string `json:"Content,omitempty" xml:"Content,omitempty" type:"Repeated"`
  23  	// By default, prefetch requests include the Accept-Encoding:gzip header. If you want a prefetch request to include other headers or implement multi-replica prefetch, you can specify a custom prefetch header by configuring the Headers parameter.
  24  	Headers map[string]*string `json:"Headers,omitempty" xml:"Headers,omitempty"`
  25  	// The website ID. You can call the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation to obtain the ID.
  26  	//
  27  	// example:
  28  	//
  29  	// 123456789****
  30  	SiteId *int64 `json:"SiteId,omitempty" xml:"SiteId,omitempty"`
  31  }
  32  
  33  func (s PreloadCachesRequest) String() string {
  34  	return dara.Prettify(s)
  35  }
  36  
  37  func (s PreloadCachesRequest) GoString() string {
  38  	return s.String()
  39  }
  40  
  41  func (s *PreloadCachesRequest) GetContent() []*string {
  42  	return s.Content
  43  }
  44  
  45  func (s *PreloadCachesRequest) GetHeaders() map[string]*string {
  46  	return s.Headers
  47  }
  48  
  49  func (s *PreloadCachesRequest) GetSiteId() *int64 {
  50  	return s.SiteId
  51  }
  52  
  53  func (s *PreloadCachesRequest) SetContent(v []*string) *PreloadCachesRequest {
  54  	s.Content = v
  55  	return s
  56  }
  57  
  58  func (s *PreloadCachesRequest) SetHeaders(v map[string]*string) *PreloadCachesRequest {
  59  	s.Headers = v
  60  	return s
  61  }
  62  
  63  func (s *PreloadCachesRequest) SetSiteId(v int64) *PreloadCachesRequest {
  64  	s.SiteId = &v
  65  	return s
  66  }
  67  
  68  func (s *PreloadCachesRequest) Validate() error {
  69  	return dara.Validate(s)
  70  }
  71