get_certificate_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 iGetCertificateRequest interface {
   9  	dara.Model
  10  	String() string
  11  	GoString() string
  12  	SetId(v string) *GetCertificateRequest
  13  	GetId() *string
  14  	SetSiteId(v int64) *GetCertificateRequest
  15  	GetSiteId() *int64
  16  }
  17  
  18  type GetCertificateRequest struct {
  19  	// Certificate ID.
  20  	//
  21  	// This parameter is required.
  22  	//
  23  	// example:
  24  	//
  25  	// babaded901474b9693acf530e0fb1d95
  26  	Id *string `json:"Id,omitempty" xml:"Id,omitempty"`
  27  	// Site ID, which can be obtained by calling the [ListSites](~~ListSites~~) interface.
  28  	//
  29  	// This parameter is required.
  30  	//
  31  	// example:
  32  	//
  33  	// 1234567890123
  34  	SiteId *int64 `json:"SiteId,omitempty" xml:"SiteId,omitempty"`
  35  }
  36  
  37  func (s GetCertificateRequest) String() string {
  38  	return dara.Prettify(s)
  39  }
  40  
  41  func (s GetCertificateRequest) GoString() string {
  42  	return s.String()
  43  }
  44  
  45  func (s *GetCertificateRequest) GetId() *string {
  46  	return s.Id
  47  }
  48  
  49  func (s *GetCertificateRequest) GetSiteId() *int64 {
  50  	return s.SiteId
  51  }
  52  
  53  func (s *GetCertificateRequest) SetId(v string) *GetCertificateRequest {
  54  	s.Id = &v
  55  	return s
  56  }
  57  
  58  func (s *GetCertificateRequest) SetSiteId(v int64) *GetCertificateRequest {
  59  	s.SiteId = &v
  60  	return s
  61  }
  62  
  63  func (s *GetCertificateRequest) Validate() error {
  64  	return dara.Validate(s)
  65  }
  66