apply_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 iApplyCertificateRequest interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetDomains(v string) *ApplyCertificateRequest
13 GetDomains() *string
14 SetSiteId(v int64) *ApplyCertificateRequest
15 GetSiteId() *int64
16 SetType(v string) *ApplyCertificateRequest
17 GetType() *string
18 }
19
20 type ApplyCertificateRequest struct {
21 // List of domains, separated by commas.
22 //
23 // This parameter is required.
24 //
25 // example:
26 //
27 // www.example.com,blog.example.com
28 Domains *string `json:"Domains,omitempty" xml:"Domains,omitempty"`
29 // Site ID.
30 //
31 // This parameter is required.
32 //
33 // example:
34 //
35 // 1234567890123
36 SiteId *int64 `json:"SiteId,omitempty" xml:"SiteId,omitempty"`
37 // The certificate type. Valid values: lets_encrypt, digicert_single, and digicert_wildcard.
38 //
39 // example:
40 //
41 // lets_encrypt
42 Type *string `json:"Type,omitempty" xml:"Type,omitempty"`
43 }
44
45 func (s ApplyCertificateRequest) String() string {
46 return dara.Prettify(s)
47 }
48
49 func (s ApplyCertificateRequest) GoString() string {
50 return s.String()
51 }
52
53 func (s *ApplyCertificateRequest) GetDomains() *string {
54 return s.Domains
55 }
56
57 func (s *ApplyCertificateRequest) GetSiteId() *int64 {
58 return s.SiteId
59 }
60
61 func (s *ApplyCertificateRequest) GetType() *string {
62 return s.Type
63 }
64
65 func (s *ApplyCertificateRequest) SetDomains(v string) *ApplyCertificateRequest {
66 s.Domains = &v
67 return s
68 }
69
70 func (s *ApplyCertificateRequest) SetSiteId(v int64) *ApplyCertificateRequest {
71 s.SiteId = &v
72 return s
73 }
74
75 func (s *ApplyCertificateRequest) SetType(v string) *ApplyCertificateRequest {
76 s.Type = &v
77 return s
78 }
79
80 func (s *ApplyCertificateRequest) Validate() error {
81 return dara.Validate(s)
82 }
83