// SetKey - Sets an object name for the policy based upload.
507750
func (p *PostPolicy) SetKey(key string) error {
	if strings.TrimSpace(key) == "" || key == "" {
		return ErrInvalidArgument("Object name is empty.")
	}
	policyCond := policyCondition{
		matchType: "eq",
		condition: "$key",
		value:     key,
	}
	if err := p.addNewPolicy(policyCond); err != nil {
		return err
	}
	p.formData["key"] = key
	return nil
}
888393
func (s *PatchFilter) SetKey(v string) *PatchFilter {
	s.Key = &v
	return s
}
670262
func (s *InstancePatchStateFilter) SetKey(v string) *InstancePatchStateFilter {
	s.Key = &v
	return s
}
753103
func (s *PlayReadyDrm) SetKey(v string) *PlayReadyDrm {
	s.Key = &v
	return s
}
1186566
func (s *ListPartsOutput) SetKey(v string) *ListPartsOutput {
	s.Key = &v
	return s
}
151807
func (s *EC2TagFilter) SetKey(v string) *EC2TagFilter {
	s.Key = &v
	return s
}
443019
func (s *MultipartUpload) SetKey(v string) *MultipartUpload {
	s.Key = &v
	return s
}
1308491
func (s *Target) SetKey(v string) *Target {
	s.Key = &v
	return s
}
746454
func (s *GetObjectInput) SetKey(v string) *GetObjectInput {
	s.Key = &v
	return s
}
456534
func (s *DeleteObjectInput) SetKey(v string) *DeleteObjectInput {
	s.Key = &v
	return s
}
1109608
func (s *SessionFilter) SetKey(v string) *SessionFilter {
	s.Key = &v
	return s
}
923290
func (s *PutObjectTaggingInput) SetKey(v string) *PutObjectTaggingInput {
	s.Key = &v
	return s
}
871415
func (s *AbortMultipartUploadInput) SetKey(v string) *AbortMultipartUploadInput {
	s.Key = &v
	return s
}
99734
func (s *Field) SetKey(v string) *Field {
	s.Key = &v
	return s
}
237935
func (s *MapFilter) SetKey(v string) *MapFilter {
	s.Key = &v
	return s
}
222289
func (s *HlsContentProtection) SetKey(v string) *HlsContentProtection {
	s.Key = &v
	return s
}
1081792
func (s *Encryption) SetKey(v string) *Encryption {
	s.Key = &v
	return s
}