Struct: kms.GenerateRandomOutput

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

Implemented Interfaces

s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Service Operations collapse

Structure Field Details

Plaintext []byte `min:"1" type:"blob" sensitive:"true"`

The random byte string. When you use the HTTP API or the Amazon Web Services CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.

If the response includes the CiphertextForRecipient field, the Plaintext field is null or empty.

Plaintext is a sensitive parameter and its value will be replaced with “sensitive” in string returned by GenerateRandomOutput's String and GoString methods.

Plaintext is automatically base64 encoded/decoded by the SDK.

_ struct{} `type:"structure"`

Method Details

func (s GenerateRandomOutput) 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”.



12288
12289
12290
// File 'service/kms/api.go', line 12288

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

func (s *GenerateRandomOutput) SetPlaintext(v []byte) *GenerateRandomOutput

SetPlaintext sets the Plaintext field's value.



12293
12294
12295
12296
// File 'service/kms/api.go', line 12293

func (s *GenerateRandomOutput) SetPlaintext(v []byte) *GenerateRandomOutput { s.Plaintext = v return s }

func (s GenerateRandomOutput) 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”.



12279
12280
12281
// File 'service/kms/api.go', line 12279

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