delete_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 iDeleteKvRequest interface {
9 dara.Model
10 String() string
11 GoString() string
12 SetKey(v string) *DeleteKvRequest
13 GetKey() *string
14 SetNamespace(v string) *DeleteKvRequest
15 GetNamespace() *string
16 }
17
18 type DeleteKvRequest struct {
19 // The name of the key that you want to delete.
20 //
21 // This parameter is required.
22 //
23 // example:
24 //
25 // test_key
26 Key *string `json:"Key,omitempty" xml:"Key,omitempty"`
27 // The name of the namespace that you specify when you call the [CreateKvNamespace](https://help.aliyun.com/document_detail/2850317.html) operation.
28 //
29 // This parameter is required.
30 //
31 // example:
32 //
33 // test_namespace
34 Namespace *string `json:"Namespace,omitempty" xml:"Namespace,omitempty"`
35 }
36
37 func (s DeleteKvRequest) String() string {
38 return dara.Prettify(s)
39 }
40
41 func (s DeleteKvRequest) GoString() string {
42 return s.String()
43 }
44
45 func (s *DeleteKvRequest) GetKey() *string {
46 return s.Key
47 }
48
49 func (s *DeleteKvRequest) GetNamespace() *string {
50 return s.Namespace
51 }
52
53 func (s *DeleteKvRequest) SetKey(v string) *DeleteKvRequest {
54 s.Key = &v
55 return s
56 }
57
58 func (s *DeleteKvRequest) SetNamespace(v string) *DeleteKvRequest {
59 s.Namespace = &v
60 return s
61 }
62
63 func (s *DeleteKvRequest) Validate() error {
64 return dara.Validate(s)
65 }
66