add_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 iAddDomainRequest interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetDomainName(v string) *AddDomainRequest
13 GetDomainName() *string
14 SetGroupId(v string) *AddDomainRequest
15 GetGroupId() *string
16 SetLang(v string) *AddDomainRequest
17 GetLang() *string
18 SetResourceGroupId(v string) *AddDomainRequest
19 GetResourceGroupId() *string
20 }
21
22 type AddDomainRequest struct {
23 // The domain name.
24 //
25 // This parameter is required.
26 //
27 // example:
28 //
29 // dns-example.top
30 DomainName *string `json:"DomainName,omitempty" xml:"DomainName,omitempty"`
31 // The ID of the group to which the domain name will belong. The default value is the ID of the default group.
32 //
33 // example:
34 //
35 // 2223
36 GroupId *string `json:"GroupId,omitempty" xml:"GroupId,omitempty"`
37 // The language of the response. Valid values:
38 //
39 // - zh: Chinese
40 //
41 // - en: English
42 //
43 // Default value: en.
44 //
45 // example:
46 //
47 // en
48 Lang *string `json:"Lang,omitempty" xml:"Lang,omitempty"`
49 // The ID of the resource group.
50 //
51 // example:
52 //
53 // rg-resourcegroupid
54 ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"`
55 }
56
57 func (s AddDomainRequest) String() string {
58 return dara.Prettify(s)
59 }
60
61 func (s AddDomainRequest) GoString() string {
62 return s.String()
63 }
64
65 func (s *AddDomainRequest) GetDomainName() *string {
66 return s.DomainName
67 }
68
69 func (s *AddDomainRequest) GetGroupId() *string {
70 return s.GroupId
71 }
72
73 func (s *AddDomainRequest) GetLang() *string {
74 return s.Lang
75 }
76
77 func (s *AddDomainRequest) GetResourceGroupId() *string {
78 return s.ResourceGroupId
79 }
80
81 func (s *AddDomainRequest) SetDomainName(v string) *AddDomainRequest {
82 s.DomainName = &v
83 return s
84 }
85
86 func (s *AddDomainRequest) SetGroupId(v string) *AddDomainRequest {
87 s.GroupId = &v
88 return s
89 }
90
91 func (s *AddDomainRequest) SetLang(v string) *AddDomainRequest {
92 s.Lang = &v
93 return s
94 }
95
96 func (s *AddDomainRequest) SetResourceGroupId(v string) *AddDomainRequest {
97 s.ResourceGroupId = &v
98 return s
99 }
100
101 func (s *AddDomainRequest) Validate() error {
102 return dara.Validate(s)
103 }
104