set_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 iSetCertificateRequest interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetCasId(v int64) *SetCertificateRequest
13 GetCasId() *int64
14 SetCertificate(v string) *SetCertificateRequest
15 GetCertificate() *string
16 SetId(v string) *SetCertificateRequest
17 GetId() *string
18 SetName(v string) *SetCertificateRequest
19 GetName() *string
20 SetOwnerId(v int64) *SetCertificateRequest
21 GetOwnerId() *int64
22 SetPrivateKey(v string) *SetCertificateRequest
23 GetPrivateKey() *string
24 SetRegion(v string) *SetCertificateRequest
25 GetRegion() *string
26 SetSecurityToken(v string) *SetCertificateRequest
27 GetSecurityToken() *string
28 SetSiteId(v int64) *SetCertificateRequest
29 GetSiteId() *int64
30 SetType(v string) *SetCertificateRequest
31 GetType() *string
32 }
33
34 type SetCertificateRequest struct {
35 // The certificate ID on Certificate Management Service.
36 //
37 // example:
38 //
39 // 30000478
40 CasId *int64 `json:"CasId,omitempty" xml:"CasId,omitempty"`
41 // The certificate content.
42 //
43 // example:
44 //
45 // -----BEGIN CERTIFICATE-----
46 Certificate *string `json:"Certificate,omitempty" xml:"Certificate,omitempty"`
47 // The certificate ID on ESA.
48 //
49 // example:
50 //
51 // 30001303
52 Id *string `json:"Id,omitempty" xml:"Id,omitempty"`
53 // The certificate name.
54 //
55 // example:
56 //
57 // yourCertName
58 Name *string `json:"Name,omitempty" xml:"Name,omitempty"`
59 OwnerId *int64 `json:"OwnerId,omitempty" xml:"OwnerId,omitempty"`
60 // The private key of the certificate.
61 //
62 // example:
63 //
64 // -----BEGIN PRIVATE KEY-----
65 PrivateKey *string `json:"PrivateKey,omitempty" xml:"PrivateKey,omitempty"`
66 // The region.
67 //
68 // example:
69 //
70 // cn-hangzhou
71 Region *string `json:"Region,omitempty" xml:"Region,omitempty"`
72 SecurityToken *string `json:"SecurityToken,omitempty" xml:"SecurityToken,omitempty"`
73 // The website ID, which can be obtained by calling the [ListSites](https://help.aliyun.com/document_detail/2850189.html) operation.
74 //
75 // This parameter is required.
76 //
77 // example:
78 //
79 // 1234567890123
80 SiteId *int64 `json:"SiteId,omitempty" xml:"SiteId,omitempty"`
81 // The certificate type. Valid values:
82 //
83 // - cas: a certificate purchased by using Certificate Management Service.
84 //
85 // - upload: a custom certificate that you upload.
86 //
87 // This parameter is required.
88 //
89 // example:
90 //
91 // cas
92 Type *string `json:"Type,omitempty" xml:"Type,omitempty"`
93 }
94
95 func (s SetCertificateRequest) String() string {
96 return dara.Prettify(s)
97 }
98
99 func (s SetCertificateRequest) GoString() string {
100 return s.String()
101 }
102
103 func (s *SetCertificateRequest) GetCasId() *int64 {
104 return s.CasId
105 }
106
107 func (s *SetCertificateRequest) GetCertificate() *string {
108 return s.Certificate
109 }
110
111 func (s *SetCertificateRequest) GetId() *string {
112 return s.Id
113 }
114
115 func (s *SetCertificateRequest) GetName() *string {
116 return s.Name
117 }
118
119 func (s *SetCertificateRequest) GetOwnerId() *int64 {
120 return s.OwnerId
121 }
122
123 func (s *SetCertificateRequest) GetPrivateKey() *string {
124 return s.PrivateKey
125 }
126
127 func (s *SetCertificateRequest) GetRegion() *string {
128 return s.Region
129 }
130
131 func (s *SetCertificateRequest) GetSecurityToken() *string {
132 return s.SecurityToken
133 }
134
135 func (s *SetCertificateRequest) GetSiteId() *int64 {
136 return s.SiteId
137 }
138
139 func (s *SetCertificateRequest) GetType() *string {
140 return s.Type
141 }
142
143 func (s *SetCertificateRequest) SetCasId(v int64) *SetCertificateRequest {
144 s.CasId = &v
145 return s
146 }
147
148 func (s *SetCertificateRequest) SetCertificate(v string) *SetCertificateRequest {
149 s.Certificate = &v
150 return s
151 }
152
153 func (s *SetCertificateRequest) SetId(v string) *SetCertificateRequest {
154 s.Id = &v
155 return s
156 }
157
158 func (s *SetCertificateRequest) SetName(v string) *SetCertificateRequest {
159 s.Name = &v
160 return s
161 }
162
163 func (s *SetCertificateRequest) SetOwnerId(v int64) *SetCertificateRequest {
164 s.OwnerId = &v
165 return s
166 }
167
168 func (s *SetCertificateRequest) SetPrivateKey(v string) *SetCertificateRequest {
169 s.PrivateKey = &v
170 return s
171 }
172
173 func (s *SetCertificateRequest) SetRegion(v string) *SetCertificateRequest {
174 s.Region = &v
175 return s
176 }
177
178 func (s *SetCertificateRequest) SetSecurityToken(v string) *SetCertificateRequest {
179 s.SecurityToken = &v
180 return s
181 }
182
183 func (s *SetCertificateRequest) SetSiteId(v int64) *SetCertificateRequest {
184 s.SiteId = &v
185 return s
186 }
187
188 func (s *SetCertificateRequest) SetType(v string) *SetCertificateRequest {
189 s.Type = &v
190 return s
191 }
192
193 func (s *SetCertificateRequest) Validate() error {
194 return dara.Validate(s)
195 }
196