delete_domain_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 iDeleteDomainRequest interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetDomainName(v string) *DeleteDomainRequest
13 GetDomainName() *string
14 SetLang(v string) *DeleteDomainRequest
15 GetLang() *string
16 }
17
18 type DeleteDomainRequest struct {
19 // The domain name that already exists in Alibaba Cloud DNS. You can call the [DescribeDomains](https://www.alibabacloud.com/help/zh/dns/api-alidns-2015-01-09-describedomains?spm=a2c63.p38356.help-menu-search-29697.d_0) operation to obtain the domain name.
20 //
21 // This parameter is required.
22 //
23 // example:
24 //
25 // example.com
26 DomainName *string `json:"DomainName,omitempty" xml:"DomainName,omitempty"`
27 // The language of the response. Valid values:
28 //
29 // - zh: Chinese
30 //
31 // - en: English
32 //
33 // Default value: en.
34 //
35 // example:
36 //
37 // en
38 Lang *string `json:"Lang,omitempty" xml:"Lang,omitempty"`
39 }
40
41 func (s DeleteDomainRequest) String() string {
42 return dara.Prettify(s)
43 }
44
45 func (s DeleteDomainRequest) GoString() string {
46 return s.String()
47 }
48
49 func (s *DeleteDomainRequest) GetDomainName() *string {
50 return s.DomainName
51 }
52
53 func (s *DeleteDomainRequest) GetLang() *string {
54 return s.Lang
55 }
56
57 func (s *DeleteDomainRequest) SetDomainName(v string) *DeleteDomainRequest {
58 s.DomainName = &v
59 return s
60 }
61
62 func (s *DeleteDomainRequest) SetLang(v string) *DeleteDomainRequest {
63 s.Lang = &v
64 return s
65 }
66
67 func (s *DeleteDomainRequest) Validate() error {
68 return dara.Validate(s)
69 }
70