update_dnsslbweight_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 iUpdateDNSSLBWeightRequest interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetLang(v string) *UpdateDNSSLBWeightRequest
13 GetLang() *string
14 SetRecordId(v string) *UpdateDNSSLBWeightRequest
15 GetRecordId() *string
16 SetUserClientIp(v string) *UpdateDNSSLBWeightRequest
17 GetUserClientIp() *string
18 SetWeight(v int32) *UpdateDNSSLBWeightRequest
19 GetWeight() *int32
20 }
21
22 type UpdateDNSSLBWeightRequest struct {
23 // The language of the content within the request and response. Default value: **zh**. Valid values:
24 //
25 // - **zh**: Chinese
26 //
27 // - **en**: English
28 //
29 // example:
30 //
31 // en
32 Lang *string `json:"Lang,omitempty" xml:"Lang,omitempty"`
33 // The ID of the DNS record. You can call the [DescribeDomainRecords](https://www.alibabacloud.com/help/en/dns/api-alidns-2015-01-09-describedomainrecords?spm=a2c63.p38356.help-menu-search-29697.d_0) operation to obtain the ID.
34 //
35 // This parameter is required.
36 //
37 // example:
38 //
39 // 9999985
40 RecordId *string `json:"RecordId,omitempty" xml:"RecordId,omitempty"`
41 // The IP address of the client.
42 //
43 // example:
44 //
45 // 1.1.1.1
46 UserClientIp *string `json:"UserClientIp,omitempty" xml:"UserClientIp,omitempty"`
47 // The weight of the DNS record that you want to specify. Valid values: `1 to 100`.
48 //
49 // This parameter is required.
50 //
51 // example:
52 //
53 // 2
54 Weight *int32 `json:"Weight,omitempty" xml:"Weight,omitempty"`
55 }
56
57 func (s UpdateDNSSLBWeightRequest) String() string {
58 return dara.Prettify(s)
59 }
60
61 func (s UpdateDNSSLBWeightRequest) GoString() string {
62 return s.String()
63 }
64
65 func (s *UpdateDNSSLBWeightRequest) GetLang() *string {
66 return s.Lang
67 }
68
69 func (s *UpdateDNSSLBWeightRequest) GetRecordId() *string {
70 return s.RecordId
71 }
72
73 func (s *UpdateDNSSLBWeightRequest) GetUserClientIp() *string {
74 return s.UserClientIp
75 }
76
77 func (s *UpdateDNSSLBWeightRequest) GetWeight() *int32 {
78 return s.Weight
79 }
80
81 func (s *UpdateDNSSLBWeightRequest) SetLang(v string) *UpdateDNSSLBWeightRequest {
82 s.Lang = &v
83 return s
84 }
85
86 func (s *UpdateDNSSLBWeightRequest) SetRecordId(v string) *UpdateDNSSLBWeightRequest {
87 s.RecordId = &v
88 return s
89 }
90
91 func (s *UpdateDNSSLBWeightRequest) SetUserClientIp(v string) *UpdateDNSSLBWeightRequest {
92 s.UserClientIp = &v
93 return s
94 }
95
96 func (s *UpdateDNSSLBWeightRequest) SetWeight(v int32) *UpdateDNSSLBWeightRequest {
97 s.Weight = &v
98 return s
99 }
100
101 func (s *UpdateDNSSLBWeightRequest) Validate() error {
102 return dara.Validate(s)
103 }
104