// SetMasterKey updates the keyring's in-memory master key but does not persist
// anything to storage
490283
func (b *AESGCMBarrier) SetMasterKey(key []byte) error {
	b.l.Lock()
	defer b.l.Unlock()

	newKeyring, err := b.updateMasterKeyCommon(key)
	if err != nil {
		return err
	}

	// Swap the keyrings
	oldKeyring := b.keyring
	b.keyring = newKeyring
	oldKeyring.Zeroize(false)
	return nil
}
753103
func (s *PlayReadyDrm) SetKey(v string) *PlayReadyDrm {
	s.Key = &v
	return s
}
103341
func (s *ModifyClusterInput) SetMasterUserPassword(v string) *ModifyClusterInput {
	s.MasterUserPassword = &v
	return s
}
705162
func (s *TagDescription) SetKey(v string) *TagDescription {
	s.Key = &v
	return s
}
910145
func (s *Record) SetKey(v string) *Record {
	s.Key = &v
	return s
}
1109608
func (s *SessionFilter) SetKey(v string) *SessionFilter {
	s.Key = &v
	return s
}
607435
func (s *HeadObjectInput) SetKey(v string) *HeadObjectInput {
	s.Key = &v
	return s
}
820460
func (s *DimensionValues) SetKey(v string) *DimensionValues {
	s.Key = &v
	return s
}
846319
func (s *AttachmentsSource) SetKey(v string) *AttachmentsSource {
	s.Key = &v
	return s
}
1115214
func (s *ListPartsInput) SetKey(v string) *ListPartsInput {
	s.Key = &v
	return s
}
77879
func (s *ResourceGroupTag) SetKey(v string) *ResourceGroupTag {
	s.Key = &v
	return s
}
589230
func (s *GetObjectTorrentInput) SetKey(v string) *GetObjectTorrentInput {
	s.Key = &v
	return s
}
465409
func (s *GetObjectAclInput) SetKey(v string) *GetObjectAclInput {
	s.Key = &v
	return s
}
928516
func (s *Attribute) SetKey(v string) *Attribute {
	s.Key = &v
	return s
}
25228
func (s *CaptionSource) SetKey(v string) *CaptionSource {
	s.Key = &v
	return s
}
649764
func (s *InventoryFilter) SetKey(v string) *InventoryFilter {
	s.Key = &v
	return s
}
734507
func (s *S3Location) SetKey(v string) *S3Location {
	s.Key = &v
	return s
}