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