get_kv_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 iGetKvRequest interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetBase64(v bool) *GetKvRequest
13 GetBase64() *bool
14 SetKey(v string) *GetKvRequest
15 GetKey() *string
16 SetNamespace(v string) *GetKvRequest
17 GetNamespace() *string
18 }
19
20 type GetKvRequest struct {
21 // Specifies whether to decode the value by using Base 64. If you call the [PutKv](https://help.aliyun.com/document_detail/2850482.html) operation and set the Base64 parameter to true, set this parameter to true to read the original content.
22 //
23 // example:
24 //
25 // true
26 Base64 *bool `json:"Base64,omitempty" xml:"Base64,omitempty"`
27 // The key name for the query.
28 //
29 // This parameter is required.
30 //
31 // example:
32 //
33 // test_key
34 Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
35 // The name of the namespace that you specify when you call the [CreateKvNamespace](https://help.aliyun.com/document_detail/2850317.html) operation.
36 //
37 // This parameter is required.
38 //
39 // example:
40 //
41 // test_namespace
42 Namespace *string `json:"Namespace,omitempty" xml:"Namespace,omitempty"`
43 }
44
45 func (s GetKvRequest) String() string {
46 return dara.Prettify(s)
47 }
48
49 func (s GetKvRequest) GoString() string {
50 return s.String()
51 }
52
53 func (s *GetKvRequest) GetBase64() *bool {
54 return s.Base64
55 }
56
57 func (s *GetKvRequest) GetKey() *string {
58 return s.Key
59 }
60
61 func (s *GetKvRequest) GetNamespace() *string {
62 return s.Namespace
63 }
64
65 func (s *GetKvRequest) SetBase64(v bool) *GetKvRequest {
66 s.Base64 = &v
67 return s
68 }
69
70 func (s *GetKvRequest) SetKey(v string) *GetKvRequest {
71 s.Key = &v
72 return s
73 }
74
75 func (s *GetKvRequest) SetNamespace(v string) *GetKvRequest {
76 s.Namespace = &v
77 return s
78 }
79
80 func (s *GetKvRequest) Validate() error {
81 return dara.Validate(s)
82 }
83