create_page_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 iCreatePageRequest interface {
   9  	dara.Model
  10  	String() string
  11  	GoString() string
  12  	SetContent(v string) *CreatePageRequest
  13  	GetContent() *string
  14  	SetContentType(v string) *CreatePageRequest
  15  	GetContentType() *string
  16  	SetDescription(v string) *CreatePageRequest
  17  	GetDescription() *string
  18  	SetName(v string) *CreatePageRequest
  19  	GetName() *string
  20  }
  21  
  22  type CreatePageRequest struct {
  23  	// The Base64-encoded page content. Example: "PGh0bWw+aGVsbG8gcGFnZTwvaHRtbD4=", which indicates "hello page".
  24  	//
  25  	// example:
  26  	//
  27  	// PGh0bWw+aGVsbG8gcGFnZTwvaHRtbD4=
  28  	Content *string `json:"Content,omitempty" xml:"Content,omitempty"`
  29  	// The Content-Type field in the HTTP header. Valid values:
  30  	//
  31  	// 	- text/html
  32  	//
  33  	// 	- application/json
  34  	//
  35  	// This parameter is required.
  36  	//
  37  	// example:
  38  	//
  39  	// text/html
  40  	ContentType *string `json:"ContentType,omitempty" xml:"ContentType,omitempty"`
  41  	// The description of the page.
  42  	//
  43  	// example:
  44  	//
  45  	// a custom deny page
  46  	Description *string `json:"Description,omitempty" xml:"Description,omitempty"`
  47  	// The name of the custom error page.
  48  	//
  49  	// This parameter is required.
  50  	//
  51  	// example:
  52  	//
  53  	// example
  54  	Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
  55  }
  56  
  57  func (s CreatePageRequest) String() string {
  58  	return dara.Prettify(s)
  59  }
  60  
  61  func (s CreatePageRequest) GoString() string {
  62  	return s.String()
  63  }
  64  
  65  func (s *CreatePageRequest) GetContent() *string {
  66  	return s.Content
  67  }
  68  
  69  func (s *CreatePageRequest) GetContentType() *string {
  70  	return s.ContentType
  71  }
  72  
  73  func (s *CreatePageRequest) GetDescription() *string {
  74  	return s.Description
  75  }
  76  
  77  func (s *CreatePageRequest) GetName() *string {
  78  	return s.Name
  79  }
  80  
  81  func (s *CreatePageRequest) SetContent(v string) *CreatePageRequest {
  82  	s.Content = &v
  83  	return s
  84  }
  85  
  86  func (s *CreatePageRequest) SetContentType(v string) *CreatePageRequest {
  87  	s.ContentType = &v
  88  	return s
  89  }
  90  
  91  func (s *CreatePageRequest) SetDescription(v string) *CreatePageRequest {
  92  	s.Description = &v
  93  	return s
  94  }
  95  
  96  func (s *CreatePageRequest) SetName(v string) *CreatePageRequest {
  97  	s.Name = &v
  98  	return s
  99  }
 100  
 101  func (s *CreatePageRequest) Validate() error {
 102  	return dara.Validate(s)
 103  }
 104