Struct: kms.ListKeysInput

import "../ibm-cos-sdk-go/service/kms"

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, request.Validator, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Limit *int64 `min:"1" type:"integer"`

Use this parameter to specify the maximum number of items to return. When this value is present, KMS does not return more than the specified number of items, but it might return fewer.

This value is optional. If you include a value, it must be between 1 and 1000, inclusive. If you do not include a value, it defaults to 100.

Marker *string `min:"1" type:"string"`

Use this parameter in a subsequent request after you receive a response with truncated results. Set it to the value of NextMarker from the truncated response you just received.

_ struct{} `type:"structure"`

Method Details

func (s ListKeysInput) GoString() string

GoString returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



15061
15062
15063
// File 'service/kms/api.go', line 15061

func (s ListKeysInput) GoString() string { return s.String() }

func (s *ListKeysInput) SetLimit(v int64) *ListKeysInput

SetLimit sets the Limit field's value.



15082
15083
15084
15085
// File 'service/kms/api.go', line 15082

func (s *ListKeysInput) SetLimit(v int64) *ListKeysInput { s.Limit = &v return s }

func (s *ListKeysInput) SetMarker(v string) *ListKeysInput

SetMarker sets the Marker field's value.



15088
15089
15090
15091
// File 'service/kms/api.go', line 15088

func (s *ListKeysInput) SetMarker(v string) *ListKeysInput { s.Marker = &v return s }

func (s ListKeysInput) String() string

String returns the string representation.

API parameter values that are decorated as “sensitive” in the API will not be included in the string output. The member name will be present, but the value will be replaced with “sensitive”.



15052
15053
15054
// File 'service/kms/api.go', line 15052

func (s ListKeysInput) String() string { return awsutil.Prettify(s) }

func (s *ListKeysInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.



15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
// File 'service/kms/api.go', line 15066

func (s *ListKeysInput) Validate() error { invalidParams := request.ErrInvalidParams{Context: "ListKeysInput"} if s.Limit != nil && *s.Limit < 1 { invalidParams.Add(request.NewErrParamMinValue("Limit", 1)) } if s.Marker != nil && len(*s.Marker) < 1 { invalidParams.Add(request.NewErrParamMinLen("Marker", 1)) } if invalidParams.Len() > 0 { return invalidParams } return nil }