toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case Event.s3ReducedRedundancyLostObject:
      return 's3:ReducedRedundancyLostObject';
    case Event.s3ObjectCreated:
      return 's3:ObjectCreated:*';
    case Event.s3ObjectCreatedPut:
      return 's3:ObjectCreated:Put';
    case Event.s3ObjectCreatedPost:
      return 's3:ObjectCreated:Post';
    case Event.s3ObjectCreatedCopy:
      return 's3:ObjectCreated:Copy';
    case Event.s3ObjectCreatedCompleteMultipartUpload:
      return 's3:ObjectCreated:CompleteMultipartUpload';
    case Event.s3ObjectRemoved:
      return 's3:ObjectRemoved:*';
    case Event.s3ObjectRemovedDelete:
      return 's3:ObjectRemoved:Delete';
    case Event.s3ObjectRemovedDeleteMarkerCreated:
      return 's3:ObjectRemoved:DeleteMarkerCreated';
    case Event.s3ObjectRestore:
      return 's3:ObjectRestore:*';
    case Event.s3ObjectRestorePost:
      return 's3:ObjectRestore:Post';
    case Event.s3ObjectRestoreCompleted:
      return 's3:ObjectRestore:Completed';
    case Event.s3Replication:
      return 's3:Replication:*';
    case Event.s3ReplicationOperationFailedReplication:
      return 's3:Replication:OperationFailedReplication';
    case Event.s3ReplicationOperationNotTracked:
      return 's3:Replication:OperationNotTracked';
    case Event.s3ReplicationOperationMissedThreshold:
      return 's3:Replication:OperationMissedThreshold';
    case Event.s3ReplicationOperationReplicatedAfterThreshold:
      return 's3:Replication:OperationReplicatedAfterThreshold';
  }
}