set_dnsslbstatus_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 iSetDNSSLBStatusRequest interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetDomainName(v string) *SetDNSSLBStatusRequest
13 GetDomainName() *string
14 SetLang(v string) *SetDNSSLBStatusRequest
15 GetLang() *string
16 SetLine(v string) *SetDNSSLBStatusRequest
17 GetLine() *string
18 SetOpen(v bool) *SetDNSSLBStatusRequest
19 GetOpen() *bool
20 SetSubDomain(v string) *SetDNSSLBStatusRequest
21 GetSubDomain() *string
22 SetType(v string) *SetDNSSLBStatusRequest
23 GetType() *string
24 SetUserClientIp(v string) *SetDNSSLBStatusRequest
25 GetUserClientIp() *string
26 }
27
28 type SetDNSSLBStatusRequest struct {
29 // The domain name.
30 //
31 // example:
32 //
33 // example.com
34 DomainName *string `json:"DomainName,omitempty" xml:"DomainName,omitempty"`
35 // The language of the content within the request and response. Default: **zh**. Valid values:
36 //
37 // - **zh**: Chinese
38 //
39 // - **en**: English
40 //
41 // example:
42 //
43 // en
44 Lang *string `json:"Lang,omitempty" xml:"Lang,omitempty"`
45 // The DNS resolution line. The line can be the default line, China Telecom, and China Mobile.
46 //
47 // example:
48 //
49 // China Mobile.
50 Line *string `json:"Line,omitempty" xml:"Line,omitempty"`
51 // Specifies whether to enable or disable weighted round-robin. Valid values:
52 //
53 // - **true* - (default): enables weighted round-robin.
54 //
55 // - **false**: disables weighted round-robin.
56 //
57 // example:
58 //
59 // true
60 Open *bool `json:"Open,omitempty" xml:"Open,omitempty"`
61 // The subdomain name for which you want to enable weighted round-robin. Set the parameter to @.example.com instead of example.com.
62 //
63 // This parameter is required.
64 //
65 // example:
66 //
67 // www.example.com
68 SubDomain *string `json:"SubDomain,omitempty" xml:"SubDomain,omitempty"`
69 // The type of the Domain Name System (DNS) record. Valid values: A and AAAA. Default value: A.
70 //
71 // example:
72 //
73 // A
74 Type *string `json:"Type,omitempty" xml:"Type,omitempty"`
75 // The IP address of the client.
76 //
77 // example:
78 //
79 // 192.0.2.0
80 UserClientIp *string `json:"UserClientIp,omitempty" xml:"UserClientIp,omitempty"`
81 }
82
83 func (s SetDNSSLBStatusRequest) String() string {
84 return dara.Prettify(s)
85 }
86
87 func (s SetDNSSLBStatusRequest) GoString() string {
88 return s.String()
89 }
90
91 func (s *SetDNSSLBStatusRequest) GetDomainName() *string {
92 return s.DomainName
93 }
94
95 func (s *SetDNSSLBStatusRequest) GetLang() *string {
96 return s.Lang
97 }
98
99 func (s *SetDNSSLBStatusRequest) GetLine() *string {
100 return s.Line
101 }
102
103 func (s *SetDNSSLBStatusRequest) GetOpen() *bool {
104 return s.Open
105 }
106
107 func (s *SetDNSSLBStatusRequest) GetSubDomain() *string {
108 return s.SubDomain
109 }
110
111 func (s *SetDNSSLBStatusRequest) GetType() *string {
112 return s.Type
113 }
114
115 func (s *SetDNSSLBStatusRequest) GetUserClientIp() *string {
116 return s.UserClientIp
117 }
118
119 func (s *SetDNSSLBStatusRequest) SetDomainName(v string) *SetDNSSLBStatusRequest {
120 s.DomainName = &v
121 return s
122 }
123
124 func (s *SetDNSSLBStatusRequest) SetLang(v string) *SetDNSSLBStatusRequest {
125 s.Lang = &v
126 return s
127 }
128
129 func (s *SetDNSSLBStatusRequest) SetLine(v string) *SetDNSSLBStatusRequest {
130 s.Line = &v
131 return s
132 }
133
134 func (s *SetDNSSLBStatusRequest) SetOpen(v bool) *SetDNSSLBStatusRequest {
135 s.Open = &v
136 return s
137 }
138
139 func (s *SetDNSSLBStatusRequest) SetSubDomain(v string) *SetDNSSLBStatusRequest {
140 s.SubDomain = &v
141 return s
142 }
143
144 func (s *SetDNSSLBStatusRequest) SetType(v string) *SetDNSSLBStatusRequest {
145 s.Type = &v
146 return s
147 }
148
149 func (s *SetDNSSLBStatusRequest) SetUserClientIp(v string) *SetDNSSLBStatusRequest {
150 s.UserClientIp = &v
151 return s
152 }
153
154 func (s *SetDNSSLBStatusRequest) Validate() error {
155 return dara.Validate(s)
156 }
157