Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | package credentials |
||
2 | |||
3 | import "github.com/alibabacloud-go/tea/tea" |
||
4 | |||
5 | // CredentialModel is a model |
||
6 | type CredentialModel struct { |
||
7 | // accesskey id |
||
8 | AccessKeyId *string `json:"accessKeyId,omitempty" xml:"accessKeyId,omitempty"` |
||
9 | // accesskey secret |
||
10 | AccessKeySecret *string `json:"accessKeySecret,omitempty" xml:"accessKeySecret,omitempty"` |
||
11 | // security token |
||
12 | SecurityToken *string `json:"securityToken,omitempty" xml:"securityToken,omitempty"` |
||
13 | // bearer token |
||
14 | BearerToken *string `json:"bearerToken,omitempty" xml:"bearerToken,omitempty"` |
||
15 | // type |
||
16 | Type *string `json:"type,omitempty" xml:"type,omitempty"` |
||
17 | } |
||
18 | |||
19 | func (s CredentialModel) String() string { |
||
20 | return tea.Prettify(s) |
||
21 | } |
||
22 | |||
23 | func (s CredentialModel) GoString() string { |
||
24 | return s.String() |
||
25 | } |
||
26 | |||
27 | func (s *CredentialModel) SetAccessKeyId(v string) *CredentialModel { |
||
28 | s.AccessKeyId = &v |
||
29 | return s |
||
30 | } |
||
31 | |||
32 | func (s *CredentialModel) SetAccessKeySecret(v string) *CredentialModel { |
||
33 | s.AccessKeySecret = &v |
||
34 | return s |
||
35 | } |
||
36 | |||
37 | func (s *CredentialModel) SetSecurityToken(v string) *CredentialModel { |
||
38 | s.SecurityToken = &v |
||
39 | return s |
||
40 | } |
||
41 | |||
42 | func (s *CredentialModel) SetBearerToken(v string) *CredentialModel { |
||
43 | s.BearerToken = &v |
||
44 | return s |
||
45 | } |
||
46 | |||
47 | func (s *CredentialModel) SetType(v string) *CredentialModel { |
||
48 | s.Type = &v |
||
49 | return s |
||
50 | } |
||
51 |