toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case InventoryOptionalField.size:
      return 'Size';
    case InventoryOptionalField.lastModifiedDate:
      return 'LastModifiedDate';
    case InventoryOptionalField.storageClass:
      return 'StorageClass';
    case InventoryOptionalField.eTag:
      return 'ETag';
    case InventoryOptionalField.isMultipartUploaded:
      return 'IsMultipartUploaded';
    case InventoryOptionalField.replicationStatus:
      return 'ReplicationStatus';
    case InventoryOptionalField.encryptionStatus:
      return 'EncryptionStatus';
    case InventoryOptionalField.objectLockRetainUntilDate:
      return 'ObjectLockRetainUntilDate';
    case InventoryOptionalField.objectLockMode:
      return 'ObjectLockMode';
    case InventoryOptionalField.objectLockLegalHoldStatus:
      return 'ObjectLockLegalHoldStatus';
    case InventoryOptionalField.intelligentTieringAccessTier:
      return 'IntelligentTieringAccessTier';
  }
}